Class DefineFactory

Object
org.apache.commons.configuration.beanutils.DefaultBeanFactory
AnchorBeanFactory
DefineFactory
All Implemented Interfaces:
org.apache.commons.configuration.beanutils.BeanFactory

public class DefineFactory extends AnchorBeanFactory
Creates a new Define.

The following rules are applied to populate the Define.

  1. Elements named "add" are treated as instances of DefineAdderBean.
  2. 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createBean(Class beanClass, org.apache.commons.configuration.beanutils.BeanDeclaration decl, Object param)
     

    Methods inherited from class org.apache.commons.configuration.beanutils.DefaultBeanFactory

    createBeanInstance, getDefaultBeanClass, initBeanInstance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface org.apache.commons.configuration.beanutils.BeanFactory
      Overrides:
      createBean in class org.apache.commons.configuration.beanutils.DefaultBeanFactory
      Throws:
      Exception