public class PassThroughItemProcessor<T> extends java.lang.Object implements ItemProcessor<T,T>
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.| Constructor and Description |
|---|
PassThroughItemProcessor() |
| Modifier and Type | Method and Description |
|---|---|
T |
process(T item)
Just returns the item back to the caller.
|
@Nullable public T process(T item) throws java.lang.Exception
process in interface ItemProcessor<T,T>item - to be processedjava.lang.Exception - thrown if exception occurs during processing.ItemProcessor.process(Object)