org.apache.commons.betwixt.io.read
Class BeanCreationChain

java.lang.Object
  extended by org.apache.commons.betwixt.io.read.BeanCreationChain
Direct Known Subclasses:
BeanCreationList

public abstract class BeanCreationChain
extends java.lang.Object

A Chain of bean creators.

Since:
0.5
Author:
Robert Burrell Donkin

Constructor Summary
BeanCreationChain()
           
 
Method Summary
abstract  java.lang.Object create(ElementMapping elementMapping, ReadContext context)
          Create a bean for the given mapping in the given context.
static BeanCreationChain createDefaultChain()
          Creates the default BeanCreationChain used when reading beans.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanCreationChain

public BeanCreationChain()
Method Detail

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 java.lang.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 null
context - the context in which this creation happens, not null
Returns:
the bean, possibly null


Copyright 2002-2008 The Apache Software Foundation. All Rights Reserved.