public abstract class

BeanCreationChain

extends Object
java.lang.Object
   ↳ org.apache.commons.betwixt.io.read.BeanCreationChain
Known Direct Subclasses

Class Overview

A Chain of bean creators.

Summary

Public Constructors
BeanCreationChain()
Public Methods
abstract Object create(ElementMapping elementMapping, ReadContext context)
Create a bean for the given mapping in the given context.
final static BeanCreationChain createDefaultChain()
Creates the default BeanCreationChain used when reading beans.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BeanCreationChain ()

Public Methods

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

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