Class ConfigurationLoader


  • class ConfigurationLoader
    extends java.lang.Object
    Handles the actual reading of the configuration
    Author:
    jferrer
    • Constructor Detail

      • ConfigurationLoader

        ConfigurationLoader()
    • Method Detail

      • readPropertiesConfiguration

        public ComponentProperties readPropertiesConfiguration​(java.lang.String companyId,
                                                               java.lang.String componentName)
      • readConfigurationObject

        public ConfigurationObjectCache readConfigurationObject​(java.lang.String companyId,
                                                                java.lang.String componentName,
                                                                java.lang.String confName,
                                                                ComponentProperties properties)
                                                         throws java.io.IOException,
                                                                org.xml.sax.SAXException
        Throws:
        java.io.IOException
        org.xml.sax.SAXException
      • readConfigurationObjectFromDatabase

        private ConfigurationObjectCache readConfigurationObjectFromDatabase​(java.lang.String companyId,
                                                                             java.lang.String componentName,
                                                                             java.lang.String confName,
                                                                             ComponentProperties properties,
                                                                             java.lang.String sourceName)
      • readConfigurationObjectFromXMLFile

        private ConfigurationObjectCache readConfigurationObjectFromXMLFile​(java.lang.String companyId,
                                                                            java.lang.String componentName,
                                                                            java.lang.String confName,
                                                                            ComponentProperties properties)
                                                                     throws java.io.FileNotFoundException,
                                                                            java.io.IOException,
                                                                            org.xml.sax.SAXException
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
        org.xml.sax.SAXException
      • loadXMLFile

        java.lang.Object loadXMLFile​(java.net.URL confFileUrl,
                                     ComponentProperties properties)
                              throws java.io.IOException,
                                     org.xml.sax.SAXException
        Read an XML file and return an Object representation of its contents
        Throws:
        java.io.IOException
        org.xml.sax.SAXException
      • saveConfigurationObjectIntoDatabase

        public void saveConfigurationObjectIntoDatabase​(java.lang.Object configurationObject,
                                                        java.lang.String companyId,
                                                        java.lang.String componentName,
                                                        java.lang.String confName,
                                                        ComponentProperties properties)