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<ConfigurationFactory.AdditionalConfigurationData> 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<ConfigurationFactory.AdditionalConfigurationData> configs)
<additional>
section. This
implementation returns a HierarchicalConfiguration
object.configs
- a collection with
AdditionalConfigurationData
objectsCopyright © 2001–2013 The Apache Software Foundation. All rights reserved.