com.germinus.easyconf
Class ConfigurationLoader
java.lang.Object
com.germinus.easyconf.ConfigurationLoader
class ConfigurationLoader
- extends java.lang.Object
Handles the actual reading of the configuration
- Author:
- jferrer
Method Summary |
(package private) java.lang.Object |
loadXMLFile(java.net.URL confFileUrl,
ComponentProperties properties)
Read an XML file and return an Object representation of its contents |
ConfigurationObjectCache |
readConfigurationObject(java.lang.String companyId,
java.lang.String componentName,
java.lang.String confName,
ComponentProperties properties)
|
private ConfigurationObjectCache |
readConfigurationObjectFromDatabase(java.lang.String companyId,
java.lang.String componentName,
java.lang.String confName,
ComponentProperties properties,
java.lang.String sourceName)
|
private ConfigurationObjectCache |
readConfigurationObjectFromXMLFile(java.lang.String companyId,
java.lang.String componentName,
java.lang.String confName,
ComponentProperties properties)
|
ComponentProperties |
readPropertiesConfiguration(java.lang.String companyId,
java.lang.String componentName)
|
void |
saveConfigurationObjectIntoDatabase(java.lang.Object configurationObject,
java.lang.String companyId,
java.lang.String componentName,
java.lang.String confName,
ComponentProperties properties)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static final Log log
serializer
private static final ConfigurationSerializer serializer
ConfigurationLoader
ConfigurationLoader()
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)