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.

  • Constructor Details

  • Method Details

    • createBean

      public Object createBean​(Class beanClass, org.apache.commons.configuration.beanutils.BeanDeclaration decl, Object param) throws Exception
      Specified by:
      createBean in interface org.apache.commons.configuration.beanutils.BeanFactory
      Overrides:
      createBean in class org.apache.commons.configuration.beanutils.DefaultBeanFactory
      Throws:
      Exception