public class CompositeItemProcessor<I,O> extends java.lang.Object implements ItemProcessor<I,O>, org.springframework.beans.factory.InitializingBean
ItemProcessor that passes the item through a sequence of
injected ItemTransformers (return value of previous
transformation is the entry value of the next).ItemProcessors
that conforms to declared input and output types.| Constructor and Description |
|---|
CompositeItemProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
O |
process(I item)
Process the provided item, returning a potentially modified or new item for continued
processing.
|
void |
setDelegates(java.util.List<? extends ItemProcessor<?,?>> delegates) |
public O process(I item) throws java.lang.Exception
ItemProcessorprocess in interface ItemProcessor<I,O>item - to be processedjava.lang.Exceptionpublic void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void setDelegates(java.util.List<? extends ItemProcessor<?,?>> delegates)