public class BeanListCreator extends Object
BeanCreator
but creates a list of beans.Modifier and Type | Method and Description |
---|---|
static <T> void |
createAndConsumeListBeans(String key,
org.apache.commons.configuration.HierarchicalConfiguration config,
Object param,
Collection<T> addTo)
Extracts a list of instantiated bean objects from an XML configuration, and adds them to
addTo . |
static <T> List<T> |
createListBeans(String key,
org.apache.commons.configuration.HierarchicalConfiguration config,
Object param)
A list of instantiated bean objects from an XML configuration.
|
public static <T> List<T> createListBeans(String key, org.apache.commons.configuration.HierarchicalConfiguration config, Object param)
key
- key to match inside bean XML definition (name of the bean).config
- the config associated with the XML definition.param
- the parameter that is used in creation of beans.public static <T> void createAndConsumeListBeans(String key, org.apache.commons.configuration.HierarchicalConfiguration config, Object param, Collection<T> addTo)
addTo
.key
- key to match inside bean XML definition (name of the bean).config
- the config associated with the XML definition.param
- the parameter that is used in creation of beansaddTo
- the collection the created beans are added to.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.