Class ReplacePropertyBeanFactory<T extends AnchorBean<T>>
Object
org.apache.commons.configuration.beanutils.DefaultBeanFactory
AnchorBeanFactory
ReplacePropertyBeanFactory<T>
- Type Parameters:
T
- type of bean to load
- All Implemented Interfaces:
org.apache.commons.configuration.beanutils.BeanFactory
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
Fields inherited from class org.apache.commons.configuration.beanutils.DefaultBeanFactory
INSTANCE
-
Constructor Summary
ConstructorsConstructorDescriptionReplacePropertyBeanFactory
(BeanInstanceMap defaultInstances) Creates a newReplacePropertyBeanFactory
instance. -
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
-
ReplacePropertyBeanFactory
Creates a newReplacePropertyBeanFactory
instance.- Parameters:
defaultInstances
- Default instances of different family-types of beans.
-
-
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
-