org.springframework.batch.item.support
Class PassThroughItemProcessor<T>

java.lang.Object
  extended by org.springframework.batch.item.support.PassThroughItemProcessor<T>
All Implemented Interfaces:
ItemProcessor<T,T>

public class PassThroughItemProcessor<T>
extends Object
implements ItemProcessor<T,T>

Simple ItemProcessor 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.

Author:
Dave Syer

Constructor Summary
PassThroughItemProcessor()
           
 
Method Summary
 T process(T item)
          Just returns the item back to the caller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassThroughItemProcessor

public PassThroughItemProcessor()
Method Detail

process

public T process(T item)
          throws Exception
Just returns the item back to the caller.

Specified by:
process in interface ItemProcessor<T,T>
Parameters:
item - to be processed
Returns:
the item
Throws:
Exception
See Also:
ItemProcessor.process(Object)


Copyright © 2013 SpringSource. All Rights Reserved.