Class ReplacePropertyBeanFactory<T extends AnchorBean<T>>
Object
org.apache.commons.configuration.beanutils.DefaultBeanFactory
org.anchoranalysis.bean.xml.factory.AnchorBeanFactory
org.anchoranalysis.bean.xml.factory.ReplacePropertyBeanFactory<T>
- Type Parameters:
T- type of bean to load
- All Implemented Interfaces:
org.apache.commons.configuration.beanutils.BeanFactory
public class ReplacePropertyBeanFactory<T extends AnchorBean<T>> extends AnchorBeanFactory
Replaces a property (an XML element of attribute) on a bean before loading it.
The String attribute key specifies the name of the element or attribute to replace.
The replacement attribute or element specifies the replacement value, depending of whether it's an attribute or element.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ReplacePropertyBeanFactory(BeanInstanceMap defaultInstances) -
Method Summary
Modifier and Type Method Description ObjectcreateBean(Class beanClass, org.apache.commons.configuration.beanutils.BeanDeclaration decl, Object param)
-
Constructor Details
-
Method Details
-
createBean
public Object createBean(Class beanClass, org.apache.commons.configuration.beanutils.BeanDeclaration decl, Object param) throws Exception- Specified by:
createBeanin interfaceorg.apache.commons.configuration.beanutils.BeanFactory- Overrides:
createBeanin classorg.apache.commons.configuration.beanutils.DefaultBeanFactory- Throws:
Exception
-