Class ConfigManager


  • public class ConfigManager
    extends java.lang.Object
    This singleton class manages LOD configurations.
    Since:
    11gR1
    • Method Detail

      • getConfigManager

        public static ConfigManager getConfigManager()
        Returns the singleton of ConfigManager.
        Returns:
        the singleton of ConfigManager
      • loadConfig

        public void loadConfig​(java.io.InputStream configXml)
                        throws LODConfigException
        Loads LOD configuration xml.
        Parameters:
        configXml - configuration xml in byte stream
        Throws:
        LODConfigException
      • validateConfigXml

        public static void validateConfigXml​(javax.xml.transform.Source configXmlSource,
                                             java.lang.String version)
                                      throws org.xml.sax.SAXException,
                                             java.io.IOException
        Validate the input configuration xml against the LOD configuration schema.
        Parameters:
        configXmlSource - configuration xml
        version - xml version. "11" for version 11, "12.1" for version 12.1.
        Throws:
        org.xml.sax.SAXException
        java.io.IOException
      • getConfig

        public LODConfig getConfig​(java.lang.String networkName)
        Returns the LOD Configuration information for the specified network.
        Parameters:
        networkName - name of the network
        Returns:
        LOD configuration information
      • setConfig

        public void setConfig​(java.lang.String networkName,
                              LODConfig config)