public class PropertyContainer
extends java.lang.Object
| Constructor and Description |
|---|
PropertyContainer(org.apache.commons.configuration.CompositeConfiguration compositeConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.commons.configuration.CompositeConfiguration |
addConfiguration(org.apache.commons.configuration.Configuration config)
This makes it possible to add a new configuration using a spring bean
factory, the factory is not really a factory
|
org.apache.commons.configuration.CompositeConfiguration |
addConfigurationFile(java.lang.String configFile)
This makes it possible to add a new configuration using a spring bean
factory, the factory is not really a factory
|
org.apache.commons.configuration.CompositeConfiguration |
addFileList(java.util.List<java.lang.String> fileNames)
Add a list of configuration files to the CompositeConfiguration.
|
PropertyContainer |
addObject(java.lang.String key,
java.lang.Object object)
This makes it possible to add a key/value using a spring bean factory,
the factory is not really a factory
|
org.apache.commons.configuration.CompositeConfiguration |
addPropertyFile(java.lang.String fileName)
Add a properties configuration file to the CompositeConfiguration
|
org.apache.commons.configuration.CompositeConfiguration |
addXmlFile(java.lang.String fileName)
Add an xml configuration file to the CompositeConfiguration
|
java.lang.Object |
get(java.lang.String key) |
org.apache.commons.configuration.CompositeConfiguration |
getConfiguration() |
java.lang.String |
getString(java.lang.String key) |
public PropertyContainer(org.apache.commons.configuration.CompositeConfiguration compositeConfiguration)
public org.apache.commons.configuration.CompositeConfiguration getConfiguration()
public org.apache.commons.configuration.CompositeConfiguration addPropertyFile(java.lang.String fileName)
throws org.apache.commons.configuration.ConfigurationException
fileName - the file name of the configuration file in url formatorg.apache.commons.configuration.ConfigurationExceptionpublic org.apache.commons.configuration.CompositeConfiguration addXmlFile(java.lang.String fileName)
throws org.apache.commons.configuration.ConfigurationException
fileName - the file name of the configuration file in url formatorg.apache.commons.configuration.ConfigurationExceptionpublic org.apache.commons.configuration.CompositeConfiguration addFileList(java.util.List<java.lang.String> fileNames)
throws org.apache.commons.configuration.ConfigurationException
The extension of the file names determines the type of configuration to create for the file.
Supports .properties and .xml configuration files.
TODO add handlers for additional property files.fileNames - the file name of the configuration file in url formatorg.apache.commons.configuration.ConfigurationExceptionpublic org.apache.commons.configuration.CompositeConfiguration addConfiguration(org.apache.commons.configuration.Configuration config)
public org.apache.commons.configuration.CompositeConfiguration addConfigurationFile(java.lang.String configFile)
throws org.apache.commons.configuration.ConfigurationException
org.apache.commons.configuration.ConfigurationExceptionpublic PropertyContainer addObject(java.lang.String key, java.lang.Object object)
key - object - public java.lang.Object get(java.lang.String key)
public java.lang.String getString(java.lang.String key)