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.
ATTR_BEAN_CLASS, ATTR_BEAN_FACTORY, ATTR_FACTORY_PARAM, ATTR_PREFIX, RESERVED_PREFIX| Constructor and Description |
|---|
DefaultConfigurationBuilder.ConfigurationDeclaration(DefaultConfigurationBuilder builder,
HierarchicalConfiguration config)
Creates a new instance of
ConfigurationDeclaration and
initializes it. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
createBeanDeclaration, getBeanFactoryParameter, getBeanProperties, getConfiguration, getNestedBeanDeclarations, getNodepublic DefaultConfigurationBuilder.ConfigurationDeclaration(DefaultConfigurationBuilder builder, HierarchicalConfiguration config)
ConfigurationDeclaration and
initializes it.builder - the associated configuration builderconfig - the configuration this declaration is based ontopublic DefaultConfigurationBuilder getConfigurationBuilder()
public String getAt()
at attribute.at attribute (can be null)public boolean isOptional()
public boolean isForceCreate()
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.forceCreate attributepublic String getBeanFactoryName()
getBeanFactoryName in interface BeanDeclarationgetBeanFactoryName in class XMLBeanDeclarationpublic String getBeanClassName()
getBeanClassName in interface BeanDeclarationgetBeanClassName in class XMLBeanDeclarationprotected boolean isReservedNode(ConfigurationNode nd)
isReservedNode in class XMLBeanDeclarationnd - the nodeprotected Object interpolate(Object value)
interpolate in class XMLBeanDeclarationvalue - the value to be interpolatedCopyright © 2001–2013 The Apache Software Foundation. All rights reserved.