|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ItemProcessListener<T,S>
Listener interface for the processing of an item. Implementations
of this interface will be notified before and after an item is
passed to the ItemProcessor
and in the event of any
exceptions thrown by the processor.
Method Summary | |
---|---|
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,
Exception e)
Called if an exception was thrown from ItemProcessor.process(Object) . |
Method Detail |
---|
void beforeProcess(T item)
ItemProcessor.process(Object)
.
item
- to be processed.void afterProcess(T item, S result)
ItemProcessor.process(Object)
returns. If the
processor returns null, this method will still be called, with
a null result, allowing for notification of 'filtered' items.
item
- to be processedresult
- of processingvoid onProcessError(T item, Exception e)
ItemProcessor.process(Object)
.
item
- attempted to be processede
- - exception thrown during processing.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |