|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.beanutils.XMLBeanDeclaration
org.apache.commons.configuration.DefaultConfigurationBuilder.ConfigurationDeclaration
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. the two reserved attributes
optional
and at
and the fact that a bean
factory is never needed.
Field Summary |
Fields inherited from class org.apache.commons.configuration.beanutils.XMLBeanDeclaration |
ATTR_BEAN_CLASS, ATTR_BEAN_FACTORY, ATTR_FACTORY_PARAM, ATTR_PREFIX, RESERVED_PREFIX |
Constructor Summary | |
DefaultConfigurationBuilder.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 |
isOptional()
Returns a flag whether this is an optional configuration. |
protected boolean |
isReservedNode(ConfigurationNode nd)
Checks whether the given node is reserved. |
Methods inherited from class org.apache.commons.configuration.beanutils.XMLBeanDeclaration |
getBeanFactoryParameter, getBeanProperties, getConfiguration, getNestedBeanDeclarations, getNode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultConfigurationBuilder.ConfigurationDeclaration(DefaultConfigurationBuilder builder, HierarchicalConfiguration config)
ConfigurationDeclaration
and
initializes it.
builder
- the associated configuration builderconfig
- the configuration this declaration is based ontoMethod Detail |
public DefaultConfigurationBuilder getConfigurationBuilder()
public String getAt()
at
attribute.
at
attribute (can be null)public boolean isOptional()
public String getBeanFactoryName()
getBeanFactoryName
in interface BeanDeclaration
getBeanFactoryName
in class XMLBeanDeclaration
public String getBeanClassName()
getBeanClassName
in interface BeanDeclaration
getBeanClassName
in class XMLBeanDeclaration
protected boolean isReservedNode(ConfigurationNode nd)
isReservedNode
in class XMLBeanDeclaration
nd
- the node
protected Object interpolate(Object value)
interpolate
in class XMLBeanDeclaration
value
- the value to be interpolated
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |