|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
T - specifies the type processed by an item processor.R - specifies the type returned by an item processor.public interface ItemProcessListener<T,R>
ItemProcessListener intercepts item processing.
| Method Summary | |
|---|---|
void |
afterProcess(T item,
R result)
The afterProcess method that receives control after an item processor processes an item. |
void |
beforeProcess(T item)
The beforeProcess method that receives control before an item processor is called to process the next item. |
void |
onProcessError(T item,
Exception ex)
The onProcessError a method that receives control after an item processor throws an exception. |
| Method Detail |
|---|
void beforeProcess(T item)
throws Exception
item - specifies the item about to be processed.
Exception - if an error occurs.
void afterProcess(T item,
R result)
throws Exception
item - specifies the item about to be processed.result - specifies the item to pass to the item writer.
Exception - if an error occurs.
void onProcessError(T item,
Exception ex)
throws Exception
item - specifies the item about to be processed.ex - specifies the exception thrown by the item processor.
Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||