org.apache.commons.configuration
public static class DefaultConfigurationBuilder.ConfigurationDeclaration extends XMLBeanDeclaration
A specialized BeanDeclaration implementation that
represents the declaration of a configuration source.
Instances of this class are able to extract all information about a
configuration source from the configuration definition file. The
declaration of a configuration source is very similar to a bean
declaration processed by XMLBeanDeclaration. There are
very few differences, e.g. some reserved attributes like
optional and at and the fact that a bean
factory is never needed.
| Field Summary | |
|---|---|
| DefaultConfigurationBuilder | configurationBuilder Stores a reference to the associated configuration builder. |
| Constructor Summary | |
|---|---|
| ConfigurationDeclaration(DefaultConfigurationBuilder builder, HierarchicalConfiguration config)
Creates a new instance of ConfigurationDeclaration and
initializes it.
| |
| Method Summary | |
|---|---|
| String | getAt()
Returns the value of the at attribute.
|
| String | getBeanClassName()
Returns the bean's class name. |
| String | getBeanFactoryName()
Returns the name of the bean factory. |
| DefaultConfigurationBuilder | getConfigurationBuilder()
Returns the associated configuration builder.
|
| protected Object | interpolate(Object value)
Performs interpolation. |
| boolean | isForceCreate()
Returns a flag whether this configuration should always be created
and added to the resulting combined configuration. |
| boolean | isOptional()
Returns a flag whether this is an optional configuration.
|
| protected boolean | isReservedNode(ConfigurationNode nd)
Checks whether the given node is reserved. |
ConfigurationDeclaration and
initializes it.
Parameters: builder the associated configuration builder config the configuration this declaration is based onto
at attribute.
Returns: the value of the at attribute (can be null)
Returns: the name of the bean's class
Returns: the name of the bean factory
Returns: the configuration builder
Parameters: value the value to be interpolated
Returns: the interpolated value
forceCreate attribute is set and the corresponding
configuration provider supports this mode, an empty configuration
will be created and added to the resulting combined configuration.
Returns: the value of the forceCreate attribute
Since: 1.4
Returns: a flag if this declaration points to an optional configuration
Parameters: nd the node
Returns: a flag whether this node is reserved