Class AnchorDefaultBeanFactory
Object
AnchorDefaultBeanFactory
- All Implemented Interfaces:
org.apache.commons.configuration.beanutils.BeanFactory
public class AnchorDefaultBeanFactory
extends Object
implements org.apache.commons.configuration.beanutils.BeanFactory
The default bean factory used for initializing
AnchorBean
s.
i.e. the factory used when no config-factory
attribute is set in the XML.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionAnchorDefaultBeanFactory
(BeanInstanceMap defaultInstances) Creates a newAnchorDefaultBeanFactory
instance. -
Method Summary
Modifier and TypeMethodDescriptioncreateBean
(Class<?> beanClass, org.apache.commons.configuration.beanutils.BeanDeclaration data, Object parameter) Class
<?> Returns null asOptional
is not supported byBeanFactory
interface.Default bean-classes to use for particular family types of beans.
-
Constructor Details
-
AnchorDefaultBeanFactory
Creates a newAnchorDefaultBeanFactory
instance.- Parameters:
defaultInstances
- Default bean-classes to use for particular family types of beans.
-
-
Method Details
-
createBean
public Object createBean(Class<?> beanClass, org.apache.commons.configuration.beanutils.BeanDeclaration data, Object parameter) throws Exception - Specified by:
createBean
in interfaceorg.apache.commons.configuration.beanutils.BeanFactory
- Throws:
Exception
-
getDefaultBeanClass
Returns null asOptional
is not supported byBeanFactory
interface.- Specified by:
getDefaultBeanClass
in interfaceorg.apache.commons.configuration.beanutils.BeanFactory
-
getDefaultInstances
Default bean-classes to use for particular family types of beans.
-