T
- list-item typepublic class IncludeListBeanFactory<T> extends AnchorBeanFactory
ListBeanFactory
but also includes elements in other lists defined in the include
tag. as elements.
This is particularly useful when combined with the include
factory, to include
elements from other XML files.
For example:
<config>
<bean config-class="java.util.List" config-factory="listInclude">
<include>
<item config-class="java.util.List" config-factory="include" filePath="fileToInclude.xml"/>
<item config-class="java.util.List" config-factory="include" filePath="anotherFileToInclude.xml"/>
</include>
<item config-class="org.anchoranalysis.bean.SomeBean"/>
<item config-class="org.anchoranalysis.bean.SomeBean"/>
<item config-class="org.anchoranalysis.bean.SomeBean"/>
</bean>
</config>
Constructor and Description |
---|
IncludeListBeanFactory()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
createBean(Class beanClass,
org.apache.commons.configuration.beanutils.BeanDeclaration decl,
Object param) |
public Object createBean(Class beanClass, org.apache.commons.configuration.beanutils.BeanDeclaration decl, Object param) throws Exception
createBean
in interface org.apache.commons.configuration.beanutils.BeanFactory
createBean
in class org.apache.commons.configuration.beanutils.DefaultBeanFactory
Exception
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.