| java.lang.Object org.apache.commons.betwixt.io.read.BeanCreationChain org.apache.commons.betwixt.io.read.BeanCreationList
BeanCreationList | public class BeanCreationList extends BeanCreationChain (Code) | | Chain implementation that's backed by a list.
This is the default implementation used by Betwixt.
Note this implementation is not
intended to allow multiple threads of execution to perform
modification operations concurrently with traversal of the chain.
Users who require this behaviour are advised to create their own implementation.
author: Robert Burrell Donkin since: 0.5 |
addBeanCreator | public void addBeanCreator(ChainedBeanCreator beanCreator)(Code) | | Adds a BeanCreator to the end of the chain.
Parameters: beanCreator - the BeanCreator to be inserted, not null |
clearBeanCreators | public void clearBeanCreators()(Code) | | Clears the creator chain.
|
create | public Object create(ElementMapping elementMapping, ReadContext readContext)(Code) | | Creates an Object based on the given element mapping and read context.
Delegates to chain.
Parameters: elementMapping - the element mapping details Parameters: readContext - create against this context the created bean, possibly null |
createStandardChain | final public static BeanCreationList createStandardChain()(Code) | | Creates the default BeanCreationChain used when reading beans.
a BeanCreationList with the default creators loader in order, not null |
getSize | public int getSize()(Code) | | Gets the number of BeanCreators in the wrapped chain.
the number of ChainedBeanCreator 's in the current chain |
insertBeanCreator | public void insertBeanCreator(int index, ChainedBeanCreator beanCreator) throws IndexOutOfBoundsException(Code) | | Inserts a BeanCreator at the given position in the chain.
Shifts the object currently in that position - and any subsequent elements -
to the right.
Parameters: index - index at which the creator should be inserted Parameters: beanCreator - the BeanCreator to be inserted, not null throws: IndexOutOfBoundsException - if the index is out of the range (index < 0 || index > getSize()) |
|
|