org.apache.commons.betwixt.io.read
Class BeanCreationChain
java.lang.Object
org.apache.commons.betwixt.io.read.BeanCreationChain
- Direct Known Subclasses:
- BeanCreationList
public abstract class BeanCreationChain
- extends Object
A Chain of bean creators.
- Since:
- 0.5
- Author:
- Robert Burrell Donkin
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanCreationChain
public BeanCreationChain()
createDefaultChain
public static final BeanCreationChain createDefaultChain()
- Creates the default
BeanCreationChain
used when reading beans.
- Returns:
- a
BeanCreationList
with the default creators loader in order, not null
create
public abstract Object create(ElementMapping elementMapping,
ReadContext context)
- Create a bean for the given mapping in the given context.
- Parameters:
elementMapping
- specifies the mapping between the type and element.
Note it is recommended that classes do not store a permenant
reference to this object since these objects may later be reused.
Not nullcontext
- the context in which this creation happens, not null
- Returns:
- the bean, possibly null
Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.