Package com.germinus.easyconf
Class ComponentConfiguration
java.lang.Object
com.germinus.easyconf.ComponentConfiguration
Contains the configuration of an EasyConf component including properties
configuration and an object graph configuration.
- Version:
- $Revision: 1.11 $
- Author:
- Jorge Ferrer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate ConfigurationLoaderprivate Mapprivate static final Logprivate ComponentProperties -
Constructor Summary
ConstructorsConstructorDescriptionComponentConfiguration(String componentName) ComponentConfiguration(String companyId, String componentName) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprivate ComponentPropertiesGet the name of the component which is associated with this configurationprivate ConfigurationLoaderGet an object which represents the default configuration of component The object is populated using the digester rules defined in the file componentName.digesterRules.xml which must be found in the classpath (first it is searched in the context of the current thread and then in the context of the system classpath)getConfigurationObject(String confName) Get an object which represents a named configuration of the component The object is populated using the digester rules defined in the file componentName.digesterRules.xml which must be found in the classpath (first it is searched in the context of the current thread and then in the context of the system classpath)Get a typed map of the properties associated with this componentinthashCode()voidsaveConfigurationObject(Object configurationObject) Update or create a new default configuration Object to a persistent storage.voidsaveConfigurationObject(String confName, Object configurationObject) Update or create a new Object with the given name to a persistent storage.
-
Field Details
-
log
private static final Log log -
properties
-
componentName
-
confManager
-
companyId
-
confObjectsCache
-
-
Constructor Details
-
ComponentConfiguration
-
ComponentConfiguration
-
-
Method Details
-
getComponentName
Get the name of the component which is associated with this configuration -
getConfigurationObject
Get an object which represents the default configuration of component The object is populated using the digester rules defined in the file componentName.digesterRules.xml which must be found in the classpath (first it is searched in the context of the current thread and then in the context of the system classpath) -
getConfigurationObject
Get an object which represents a named configuration of the component The object is populated using the digester rules defined in the file componentName.digesterRules.xml which must be found in the classpath (first it is searched in the context of the current thread and then in the context of the system classpath) -
saveConfigurationObject
Update or create a new default configuration Object to a persistent storage. In order to make this method work it should be stablished a configuration-objects-source to a database as explained in the docs. If the source of configuration objects does not allow persistent storage (which is the default) an exception will be thrown.- Parameters:
obj-
-
saveConfigurationObject
Update or create a new Object with the given name to a persistent storage. In order to make this method work it should be stablished a configuration-objects-source to a database as explained in the docs. If the source of configuration objects does not allow persistent storage (which is the default) an exception will be thrown.- Parameters:
obj-
-
getConfigurationManager
-
getProperties
Get a typed map of the properties associated with this component -
getAvailableProperties
-
equals
-
hashCode
public int hashCode()
-