public static class ConfigurationFactory.ConfigurationBuilder extends Object
Constructor and Description |
---|
ConfigurationFactory.ConfigurationBuilder()
Creates a new instance of
ConfigurationBuilder . |
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalConfig(ConfigurationFactory.AdditionalConfigurationData data)
Adds information about an additional configuration.
|
void |
addConfiguration(Configuration conf)
Adds a new configuration to this object.
|
protected Configuration |
createAdditionalConfiguration(Collection configs)
Creates a configuration object with the union of all properties
defined in the
<additional> section. |
CompositeConfiguration |
getConfiguration()
Returns the final composite configuration.
|
public ConfigurationFactory.ConfigurationBuilder()
ConfigurationBuilder
.public void addConfiguration(Configuration conf)
conf
- the configuration to be addedpublic void addAdditionalConfig(ConfigurationFactory.AdditionalConfigurationData data)
data
- the data about the additional configurationpublic CompositeConfiguration getConfiguration()
protected Configuration createAdditionalConfiguration(Collection configs)
<additional>
section. This
implementation returns a HierarchicalConfiguration
object.configs
- a collection with
AdditionalConfigurationData
objectsCopyright © 2012 JBoss by Red Hat. All Rights Reserved.