public class OSGIConfigurationProvider extends Object implements ConfigurationProvider
Constructor and Description |
---|
OSGIConfigurationProvider() |
Modifier 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 ConfigurationProvider.getConfiguration(String) method may load
it based on conventions (naming,...). |
public void registerConfiguration(String beanName, org.apache.commons.configuration.HierarchicalConfiguration conf)
ConfigurationProvider
HierarchicalConfiguration
for a bean name.ConfigurationProvider.getConfiguration(String)
method may load
it based on conventions (naming,...).registerConfiguration
in interface ConfigurationProvider
beanName
- The bean name for which the configuration has to be
registered.conf
- The hierarchical configuration to register for the bean name.public org.apache.commons.configuration.HierarchicalConfiguration getConfiguration(String beanName) throws org.apache.commons.configuration.ConfigurationException
ConfigurationProvider
ConfigurationProvider.registerConfiguration(String, HierarchicalConfiguration)
.getConfiguration
in interface ConfigurationProvider
org.apache.commons.configuration.ConfigurationException
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.