Class AnchorDefaultBeanFactory
Object
org.anchoranalysis.bean.xml.factory.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
AnchorBeans.
i.e. the factory used when no config-factory attribute is set in the XML.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description AnchorDefaultBeanFactory(BeanInstanceMap defaultInstances) -
Method Summary
Modifier and Type Method Description ObjectcreateBean(Class<?> beanClass, org.apache.commons.configuration.beanutils.BeanDeclaration data, Object parameter)Class<?>getDefaultBeanClass()Returns null asOptionalis not supported byBeanFactoryinterface.BeanInstanceMapgetDefaultInstances()Default bean-classes to use for particular family types of beans.
-
Constructor Details
-
Method Details
-
createBean
public Object createBean(Class<?> beanClass, org.apache.commons.configuration.beanutils.BeanDeclaration data, Object parameter) throws Exception- Specified by:
createBeanin interfaceorg.apache.commons.configuration.beanutils.BeanFactory- Throws:
Exception
-
getDefaultBeanClass
Returns null asOptionalis not supported byBeanFactoryinterface.- Specified by:
getDefaultBeanClassin interfaceorg.apache.commons.configuration.beanutils.BeanFactory
-
getDefaultInstances
Default bean-classes to use for particular family types of beans.
-