public interface ItemProcessListener<T,S> extends StepListener
ItemProcessor
and in the event of any
exceptions thrown by the processor.Modifier and Type | Method and Description |
---|---|
void |
afterProcess(T item,
S result)
Called after
ItemProcessor.process(Object) returns. |
void |
beforeProcess(T item)
Called before
ItemProcessor.process(Object) . |
void |
onProcessError(T item,
java.lang.Exception e)
Called if an exception was thrown from
ItemProcessor.process(Object) . |
void beforeProcess(T item)
ItemProcessor.process(Object)
.item
- to be processed.void afterProcess(T item, @Nullable S result)
ItemProcessor.process(Object)
returns. If the
processor returns null
, this method will still be called, with
a {code null} result, allowing for notification of 'filtered' items.item
- to be processedresult
- of processingvoid onProcessError(T item, java.lang.Exception e)
ItemProcessor.process(Object)
.item
- attempted to be processede
- - exception thrown during processing.