Uses of Interface
org.apache.commons.configuration2.beanutils.BeanDeclaration
-
Packages that use BeanDeclaration Package Description org.apache.commons.configuration2.beanutils In this package aConfiguration
implementation can be found that implements theDynaBean
interface.org.apache.commons.configuration2.builder This package contains the implementations of configuration builder classes used to create newConfiguration
objects.org.apache.commons.configuration2.builder.combined A package containing the implementation of the builder for combined configurations. -
-
Uses of BeanDeclaration in org.apache.commons.configuration2.beanutils
Classes in org.apache.commons.configuration2.beanutils that implement BeanDeclaration Modifier and Type Class Description class
CombinedBeanDeclaration
A special implementation of theBeanDeclaration
interface which allows combining multipleBeanDeclaration
objects.class
XMLBeanDeclaration
An implementation of theBeanDeclaration
interface that is suitable for XML configuration files.Fields in org.apache.commons.configuration2.beanutils declared as BeanDeclaration Modifier and Type Field Description private BeanDeclaration
ConstructorArg. beanDeclaration
The bean declaration referenced by this constructor argument.private BeanDeclaration
BeanHelper.BeanCreationContextImpl. data
The underlying bean declaration.Fields in org.apache.commons.configuration2.beanutils with type parameters of type BeanDeclaration Modifier and Type Field Description private java.util.ArrayList<BeanDeclaration>
CombinedBeanDeclaration. childDeclarations
A list with the child declarations.Methods in org.apache.commons.configuration2.beanutils that return BeanDeclaration Modifier and Type Method Description (package private) BeanDeclaration
XMLBeanDeclaration. createBeanDeclaration(XMLBeanDeclaration.NodeData<?> nodeData)
Creates a newBeanDeclaration
for a child node of the current configuration node.BeanDeclaration
BeanCreationContext. getBeanDeclaration()
Gets theBeanDeclaration
with the data for the new bean.BeanDeclaration
BeanHelper.BeanCreationContextImpl. getBeanDeclaration()
BeanDeclaration
ConstructorArg. getBeanDeclaration()
Gets theBeanDeclaration
referenced by this constructor argument.Methods in org.apache.commons.configuration2.beanutils with parameters of type BeanDeclaration Modifier and Type Method Description private static <T> void
DefaultBeanFactory. checkSingleMatchingConstructor(java.lang.Class<T> beanClass, BeanDeclaration data, java.util.List<java.lang.reflect.Constructor<T>> matchingConstructors)
Checks whether exactly one matching constructor was found.private static ConfigurationRuntimeException
DefaultBeanFactory. constructorMatchingException(java.lang.Class<?> beanClass, BeanDeclaration data, java.lang.String msg)
Constructs an exception if no single matching constructor was found with a meaningful error message.java.lang.Object
BeanCreationContext. createBean(BeanDeclaration data)
Creates a bean based on the givenBeanDeclaration
.java.lang.Object
BeanHelper.BeanCreationContextImpl. createBean(BeanDeclaration data)
java.lang.Object
BeanHelper. createBean(BeanDeclaration data)
Creates a bean instance for the specified declaration.java.lang.Object
BeanHelper. createBean(BeanDeclaration data, java.lang.Class<?> defaultClass)
Creates a bean instance for the specified declaration.java.lang.Object
BeanHelper. createBean(BeanDeclaration data, java.lang.Class<?> defaultClass, java.lang.Object param)
The main method for creating and initializing beans from a configuration.private BeanCreationContext
BeanHelper. createBeanCreationContext(BeanDeclaration data, java.lang.Class<?> defaultClass, java.lang.Object param, BeanFactory factory)
Creates aBeanCreationContext
object for the creation of the specified bean.private static java.lang.Class<?>
BeanHelper. fetchBeanClass(BeanDeclaration data, java.lang.Class<?> defaultClass, BeanFactory factory)
Determines the class of the bean to be created.private BeanFactory
BeanHelper. fetchBeanFactory(BeanDeclaration data)
Obtains the bean factory to use for creating the specified bean.protected static <T> java.lang.reflect.Constructor<T>
DefaultBeanFactory. findMatchingConstructor(java.lang.Class<T> beanClass, BeanDeclaration data)
Evaluates constructor arguments in the specifiedBeanDeclaration
and tries to find a unique matching constructor.private static <T> java.util.List<java.lang.reflect.Constructor<T>>
DefaultBeanFactory. findMatchingConstructors(java.lang.Class<T> beanClass, BeanDeclaration data)
Returns a list with all constructors which are compatible with the constructor arguments specified by the givenBeanDeclaration
.static ConstructorArg
ConstructorArg. forBeanDeclaration(BeanDeclaration decl)
Creates a new instance ofConstructorArg
for the specifiedBeanDeclaration
.static ConstructorArg
ConstructorArg. forBeanDeclaration(BeanDeclaration beanDeclaration, java.lang.String typeName)
Creates a new instance ofConstructorArg
for the specifiedBeanDeclaration
and sets the type name explicitly.private static java.util.Collection<ConstructorArg>
DefaultBeanFactory. getConstructorArgs(BeanDeclaration data)
Gets constructor arguments from a bean declaration.void
BeanCreationContext. initBean(java.lang.Object bean, BeanDeclaration data)
Initializes a bean's property based on the givenBeanDeclaration
.void
BeanHelper.BeanCreationContextImpl. initBean(java.lang.Object bean, BeanDeclaration data)
void
BeanHelper. initBean(java.lang.Object bean, BeanDeclaration data)
Initializes the passed in bean.static void
BeanHelper. initBeanProperties(java.lang.Object bean, BeanDeclaration data)
Initializes the beans properties.private static java.util.Collection<ConstructorArg>
DefaultBeanFactory. nullSafeConstructorArgs(BeanDeclaration data)
Fetches constructor arguments from the given bean declaration.Method parameters in org.apache.commons.configuration2.beanutils with type arguments of type BeanDeclaration Modifier and Type Method Description private <T> T
CombinedBeanDeclaration. findFirst(java.util.function.Function<? super BeanDeclaration,? extends T> mapper)
private java.util.Map<java.lang.String,java.lang.Object>
CombinedBeanDeclaration. get(java.util.function.Function<? super BeanDeclaration,? extends java.util.Map<java.lang.String,java.lang.Object>> mapper)
Constructors in org.apache.commons.configuration2.beanutils with parameters of type BeanDeclaration Constructor Description BeanCreationContextImpl(BeanHelper helper, java.lang.Class<?> beanClass, BeanDeclaration data, java.lang.Object param)
CombinedBeanDeclaration(BeanDeclaration... decl)
Constructs a new instance ofCombinedBeanDeclaration
and initializes it with the given child declarations.ConstructorArg(BeanDeclaration decl, java.lang.Object val, java.lang.String type)
Constructs a new instance ofConstructorArg
. -
Uses of BeanDeclaration in org.apache.commons.configuration2.builder
Fields in org.apache.commons.configuration2.builder declared as BeanDeclaration Modifier and Type Field Description private BeanDeclaration
BasicConfigurationBuilder. resultDeclaration
The current bean declaration.Methods in org.apache.commons.configuration2.builder that return BeanDeclaration Modifier and Type Method Description protected BeanDeclaration
BasicConfigurationBuilder. createResultDeclaration(java.util.Map<java.lang.String,java.lang.Object> params)
Creates a newBeanDeclaration
which is used for creating new result objects dynamically.protected BeanDeclaration
BasicConfigurationBuilder. getResultDeclaration()
Gets theBeanDeclaration
that is used to create and initialize result objects. -
Uses of BeanDeclaration in org.apache.commons.configuration2.builder.combined
Classes in org.apache.commons.configuration2.builder.combined that implement BeanDeclaration Modifier and Type Class Description class
ConfigurationDeclaration
A specializedBeanDeclaration
implementation that represents the declaration of a configuration source.Methods in org.apache.commons.configuration2.builder.combined that return BeanDeclaration Modifier and Type Method Description protected BeanDeclaration
CombinedConfigurationBuilder. createResultDeclaration(java.util.Map<java.lang.String,java.lang.Object> params)
Creates a newBeanDeclaration
which is used for creating new result objects dynamically.Methods in org.apache.commons.configuration2.builder.combined with parameters of type BeanDeclaration Modifier and Type Method Description (package private) void
CombinedConfigurationBuilder. initBean(java.lang.Object bean, BeanDeclaration decl)
Initializes a bean using the currentBeanHelper
.
-