public interface ItemProcessListener
| Modifier and Type | Method and Description | 
|---|---|
| void | afterProcess(java.lang.Object item,
            java.lang.Object result)The afterProcess method receives control after an item
 processor processes an item. | 
| void | beforeProcess(java.lang.Object item)The beforeProcess method receives control before
 an item processor is called to process the next item. | 
| void | onProcessError(java.lang.Object item,
              java.lang.Exception ex)The onProcessError method receives control after an
 item processor processItem throws an exception. | 
void beforeProcess(java.lang.Object item)
            throws java.lang.Exception
item - specifies the item about to be processed.java.lang.Exception - if an error occurs.void afterProcess(java.lang.Object item,
                  java.lang.Object result)
           throws java.lang.Exception
item - specifies the item processed by the item processor.result - specifies the item to pass to the item writer.java.lang.Exception - if an error occurs.void onProcessError(java.lang.Object item,
                    java.lang.Exception ex)
             throws java.lang.Exception
item - specifies the item the processor attempted to process.ex - specifies the exception thrown by the item processor.java.lang.Exception - if an error occurs