org.apache.commons.betwixt.io.read
Class BeanCreationList.ChainWorker

java.lang.Object
  extended by org.apache.commons.betwixt.io.read.BeanCreationChain
      extended by org.apache.commons.betwixt.io.read.BeanCreationList.ChainWorker
Enclosing class:
BeanCreationList

private class BeanCreationList.ChainWorker
extends BeanCreationChain

Worker class walks a chain


Field Summary
private  java.util.Iterator iterator
          Iterator for the creator list
 
Constructor Summary
BeanCreationList.ChainWorker()
          Creates the iterator
 
Method Summary
 java.lang.Object create(ElementMapping elementMapping, ReadContext readContext)
          Create a bean for the given mapping in the given context.
 
Methods inherited from class org.apache.commons.betwixt.io.read.BeanCreationChain
createDefaultChain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iterator

private java.util.Iterator iterator
Iterator for the creator list

Constructor Detail

BeanCreationList.ChainWorker

BeanCreationList.ChainWorker()
Creates the iterator

Method Detail

create

public java.lang.Object create(ElementMapping elementMapping,
                               ReadContext readContext)
Description copied from class: BeanCreationChain
Create a bean for the given mapping in the given context.

Specified by:
create in class BeanCreationChain
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
readContext - the context in which this creation happens, not null
Returns:
the bean, possibly null
See Also:
BeanCreationChain.create(org.apache.commons.betwixt.io.read.ElementMapping, org.apache.commons.betwixt.io.read.ReadContext)