public interface ConfigurationProvider
HierarchicalConfiguration
for beansModifier and Type | Method and Description |
---|---|
org.apache.commons.configuration.HierarchicalConfiguration |
getConfiguration(String beanName)
Load and return the configuration for the bean with the given name.
|
void |
registerConfiguration(String beanName,
org.apache.commons.configuration.HierarchicalConfiguration conf)
Register a
HierarchicalConfiguration for a bean name.It is not mandatory to use the registerConfiguration to have the configuration available as the getConfiguration(String) method may load
it based on conventions (naming,...). |
void registerConfiguration(String beanName, org.apache.commons.configuration.HierarchicalConfiguration conf)
HierarchicalConfiguration
for a bean name.getConfiguration(String)
method may load
it based on conventions (naming,...).beanName
- The bean name for which the configuration has to be
registered.conf
- The hierarchical configuration to register for the bean name.org.apache.commons.configuration.HierarchicalConfiguration getConfiguration(String beanName) throws org.apache.commons.configuration.ConfigurationException
registerConfiguration(String, HierarchicalConfiguration)
.beanName
- org.apache.commons.configuration.ConfigurationException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.