java.lang.Object | ||
↳ | org.apache.commons.betwixt.io.read.BeanCreationChain | |
↳ | org.apache.commons.betwixt.io.read.BeanCreationList |
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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a
BeanCreator to the end of the chain. | |||||||||||
Clears the creator chain.
| |||||||||||
Creates an Object based on the given element mapping and read context.
| |||||||||||
Creates the default
BeanCreationChain used when reading beans. | |||||||||||
Gets the number of BeanCreators in the wrapped chain.
| |||||||||||
Inserts a
BeanCreator at the given position in the chain. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.commons.betwixt.io.read.BeanCreationChain
| |||||||||||
From class
java.lang.Object
|
Adds a BeanCreator
to the end of the chain.
beanCreator | the BeanCreator to be inserted, not null
|
---|
Clears the creator chain.
Creates an Object based on the given element mapping and read context. Delegates to chain.
elementMapping | the element mapping details |
---|---|
readContext | create against this context |
Creates the default BeanCreationChain
used when reading beans.
BeanCreationList
with the default creators loader in order, not null
Gets the number of BeanCreators in the wrapped chain.
ChainedBeanCreator
's in the current chain
Inserts a BeanCreator
at the given position in the chain.
Shifts the object currently in that position - and any subsequent elements -
to the right.
index | index at which the creator should be inserted |
---|---|
beanCreator | the BeanCreator to be inserted, not null |
IndexOutOfBoundsException | if the index is out of the range
(index < 0 || index > getSize())
|
---|