类 PassThroughItemProcessor<T>
- java.lang.Object
- org.springframework.batch.item.support.PassThroughItemProcessor<T>
- 所有已实现的接口:
ItemProcessor<T,T>
public class PassThroughItemProcessor<T> extends java.lang.Object implements ItemProcessor<T,T>
SimpleItemProcessor
that does nothing - simply passes its argument through to the caller. Useful as a default when the reader and writer in a business process deal with items of the same type, and no transformations are required.- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 PassThroughItemProcessor()
构造器详细资料
PassThroughItemProcessor
public PassThroughItemProcessor()
方法详细资料
process
public T process(T item) throws java.lang.Exception
Just returns the item back to the caller.- 指定者:
process
在接口中ItemProcessor<T,T>
- 参数:
item
- to be processed- 返回:
- the item
- 抛出:
java.lang.Exception
- thrown if exception occurs during processing.- 另请参阅:
ItemProcessor.process(Object)