public class CompositeItemProcessor<I,O> extends Object implements ItemProcessor<I,O>, org.springframework.beans.factory.InitializingBean
ItemProcessor
that passes the item through a sequence of
injected ItemTransformer
s (return value of previous
transformation is the entry value of the next).ItemProcessor
s
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(List<? extends ItemProcessor<?,?>> delegates) |
public O process(I item) throws Exception
ItemProcessor
process
in interface ItemProcessor<I,O>
item
- to be processedException
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public void setDelegates(List<? extends ItemProcessor<?,?>> delegates)
Copyright © 2014 Pivotal. All rights reserved.