Uses of Interface
org.apache.commons.configuration2.beanutils.BeanDeclaration
Packages that use BeanDeclaration
Package
Description
In this package a
Configuration implementation can be found that implements the DynaBean interface.
This package contains the implementations of configuration builder classes used to create new
Configuration objects.
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 BeanDeclarationModifier and TypeClassDescriptionclassA special implementation of theBeanDeclarationinterface which allows combining multipleBeanDeclarationobjects.classAn implementation of theBeanDeclarationinterface that is suitable for XML configuration files.Fields in org.apache.commons.configuration2.beanutils declared as BeanDeclarationModifier and TypeFieldDescriptionprivate final BeanDeclarationConstructorArg.beanDeclarationThe bean declaration referenced by this constructor argument.private final BeanDeclarationBeanHelper.BeanCreationContextImpl.dataThe underlying bean declaration.Fields in org.apache.commons.configuration2.beanutils with type parameters of type BeanDeclarationModifier and TypeFieldDescriptionprivate final ArrayList<BeanDeclaration> CombinedBeanDeclaration.childDeclarationsA list with the child declarations.Methods in org.apache.commons.configuration2.beanutils that return BeanDeclarationModifier and TypeMethodDescription(package private) BeanDeclarationXMLBeanDeclaration.createBeanDeclaration(XMLBeanDeclaration.NodeData<?> nodeData) Creates a newBeanDeclarationfor a child node of the current configuration node.BeanCreationContext.getBeanDeclaration()Gets theBeanDeclarationwith the data for the new bean.BeanHelper.BeanCreationContextImpl.getBeanDeclaration()ConstructorArg.getBeanDeclaration()Gets theBeanDeclarationreferenced by this constructor argument.Methods in org.apache.commons.configuration2.beanutils with parameters of type BeanDeclarationModifier and TypeMethodDescriptionprivate static <T> voidDefaultBeanFactory.checkSingleMatchingConstructor(Class<T> beanClass, BeanDeclaration data, List<Constructor<T>> matchingConstructors) Checks whether exactly one matching constructor was found.private static ConfigurationRuntimeExceptionDefaultBeanFactory.constructorMatchingException(Class<?> beanClass, BeanDeclaration data, String msg) Constructs an exception if no single matching constructor was found with a meaningful error message.BeanCreationContext.createBean(BeanDeclaration data) Creates a bean based on the givenBeanDeclaration.BeanHelper.BeanCreationContextImpl.createBean(BeanDeclaration data) BeanHelper.createBean(BeanDeclaration data) Creates a bean instance for the specified declaration.BeanHelper.createBean(BeanDeclaration data, Class<?> defaultClass) Creates a bean instance for the specified declaration.BeanHelper.createBean(BeanDeclaration data, Class<?> defaultClass, Object param) The main method for creating and initializing beans from a configuration.private BeanCreationContextBeanHelper.createBeanCreationContext(BeanDeclaration data, Class<?> defaultClass, Object param, BeanFactory factory) Creates aBeanCreationContextobject for the creation of the specified bean.private static Class<?> BeanHelper.fetchBeanClass(BeanDeclaration data, Class<?> defaultClass, BeanFactory factory) Determines the class of the bean to be created.private BeanFactoryBeanHelper.fetchBeanFactory(BeanDeclaration data) Obtains the bean factory to use for creating the specified bean.protected static <T> Constructor<T> DefaultBeanFactory.findMatchingConstructor(Class<T> beanClass, BeanDeclaration data) Evaluates constructor arguments in the specifiedBeanDeclarationand tries to find a unique matching constructor.private static <T> List<Constructor<T>> DefaultBeanFactory.findMatchingConstructors(Class<T> beanClass, BeanDeclaration data) Returns a list with all constructors which are compatible with the constructor arguments specified by the givenBeanDeclaration.static ConstructorArgConstructorArg.forBeanDeclaration(BeanDeclaration decl) Creates a new instance ofConstructorArgfor the specifiedBeanDeclaration.static ConstructorArgConstructorArg.forBeanDeclaration(BeanDeclaration beanDeclaration, String typeName) Creates a new instance ofConstructorArgfor the specifiedBeanDeclarationand sets the type name explicitly.private static Collection<ConstructorArg> DefaultBeanFactory.getConstructorArgs(BeanDeclaration data) Gets constructor arguments from a bean declaration.voidBeanCreationContext.initBean(Object bean, BeanDeclaration data) Initializes a bean's property based on the givenBeanDeclaration.voidBeanHelper.BeanCreationContextImpl.initBean(Object bean, BeanDeclaration data) voidBeanHelper.initBean(Object bean, BeanDeclaration data) Initializes the passed in bean.static voidBeanHelper.initBeanProperties(Object bean, BeanDeclaration data) Initializes the beans properties.private static 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 BeanDeclarationModifier and TypeMethodDescriptionprivate <T> TCombinedBeanDeclaration.findFirst(Function<? super BeanDeclaration, ? extends T> mapper) Constructors in org.apache.commons.configuration2.beanutils with parameters of type BeanDeclarationModifierConstructorDescriptionprivateBeanCreationContextImpl(BeanHelper helper, Class<?> beanClass, BeanDeclaration data, Object param) CombinedBeanDeclaration(BeanDeclaration... decl) Constructs a new instance ofCombinedBeanDeclarationand initializes it with the given child declarations.privateConstructorArg(BeanDeclaration decl, Object val, 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 BeanDeclarationModifier and TypeFieldDescriptionprivate BeanDeclarationBasicConfigurationBuilder.resultDeclarationThe current bean declaration.Methods in org.apache.commons.configuration2.builder that return BeanDeclarationModifier and TypeMethodDescriptionprotected BeanDeclarationBasicConfigurationBuilder.createResultDeclaration(Map<String, Object> params) Creates a newBeanDeclarationwhich is used for creating new result objects dynamically.protected final BeanDeclarationBasicConfigurationBuilder.getResultDeclaration()Gets theBeanDeclarationthat 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 BeanDeclarationModifier and TypeClassDescriptionclassA specializedBeanDeclarationimplementation that represents the declaration of a configuration source.Methods in org.apache.commons.configuration2.builder.combined that return BeanDeclarationModifier and TypeMethodDescriptionprotected BeanDeclarationCombinedConfigurationBuilder.createResultDeclaration(Map<String, Object> params) Creates a newBeanDeclarationwhich is used for creating new result objects dynamically.Methods in org.apache.commons.configuration2.builder.combined with parameters of type BeanDeclarationModifier and TypeMethodDescription(package private) voidCombinedConfigurationBuilder.initBean(Object bean, BeanDeclaration decl) Initializes a bean using the currentBeanHelper.