Package org.anchoranalysis.bean.define
Class DefineFactory
Object
org.apache.commons.configuration.beanutils.DefaultBeanFactory
AnchorBeanFactory
DefineFactory
- All Implemented Interfaces:
org.apache.commons.configuration.beanutils.BeanFactory
Creates a new
Define
.
The following rules are applied to populate the Define
.
- Elements named "add" are treated as instances of
DefineAdderBean
. - Otherwise every sub-element of
Define
is simply assumed to be a list of beans (the names of the sub-elements are irrelevant).
- Author:
- Owen Feehan
-
Field Summary
Fields inherited from class org.apache.commons.configuration.beanutils.DefaultBeanFactory
INSTANCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBean
(Class beanClass, org.apache.commons.configuration.beanutils.BeanDeclaration decl, Object param) Methods inherited from class org.apache.commons.configuration.beanutils.DefaultBeanFactory
createBeanInstance, getDefaultBeanClass, initBeanInstance
-
Constructor Details
-
DefineFactory
public DefineFactory()
-
-
Method Details
-
createBean
public Object createBean(Class beanClass, org.apache.commons.configuration.beanutils.BeanDeclaration decl, Object param) throws Exception - Specified by:
createBean
in interfaceorg.apache.commons.configuration.beanutils.BeanFactory
- Overrides:
createBean
in classorg.apache.commons.configuration.beanutils.DefaultBeanFactory
- Throws:
Exception
-