类 CompositeItemProcessor<I,O>
- java.lang.Object
- org.springframework.batch.item.support.CompositeItemProcessor<I,O>
- 所有已实现的接口:
ItemProcessor<I,O>
,org.springframework.beans.factory.InitializingBean
public class CompositeItemProcessor<I,O> extends java.lang.Object implements ItemProcessor<I,O>, org.springframework.beans.factory.InitializingBean
CompositeItemProcessor
that passes the item through a sequence of injectedItemTransformer
s (return value of previous transformation is the entry value of the next).
Note the user is responsible for injecting a chain ofItemProcessor
s that conforms to declared input and output types.- 作者:
- Robert Kasanicky
构造器概要
构造器 构造器 说明 CompositeItemProcessor()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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)
Establishes theItemProcessor
delegates that will work on the item to be processed.
构造器详细资料
CompositeItemProcessor
public CompositeItemProcessor()
方法详细资料
process
public O process(I item) throws java.lang.Exception
从接口复制的说明:ItemProcessor
Process the provided item, returning a potentially modified or new item for continued processing. If the returned result is null, it is assumed that processing of the item should not continue.- 指定者:
process
在接口中ItemProcessor<I,O>
- 参数:
item
- to be processed- 返回:
- potentially modified or new item for continued processing,
null
if processing of the provided item should not continue. - 抛出:
java.lang.Exception
- thrown if exception occurs during processing.
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- 指定者:
afterPropertiesSet
在接口中org.springframework.beans.factory.InitializingBean
- 抛出:
java.lang.Exception
setDelegates
public void setDelegates(java.util.List<? extends ItemProcessor<?,?>> delegates)
Establishes theItemProcessor
delegates that will work on the item to be processed.- 参数:
delegates
- list ofItemProcessor
delegates that will work on the item.