public abstract class AbstractItemProcessListener extends java.lang.Object implements ItemProcessListener
| Constructor and Description |
|---|
AbstractItemProcessListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterProcess(java.lang.Object item,
java.lang.Object result)
Override this method if the ItemProcessListener
will do something after the item is processed.
|
void |
beforeProcess(java.lang.Object item)
Override this method if the ItemProcessListener
will do something before the item is processed.
|
void |
onProcessError(java.lang.Object item,
java.lang.Exception ex)
Override this method if the ItemProcessListener
will do something when the ItemProcessor processItem
method throws an exception.
|
public void beforeProcess(java.lang.Object item)
throws java.lang.Exception
beforeProcess in interface ItemProcessListeneritem - specifies the item about to be processed.java.lang.Exception - (or subclass) if an error occurs.public void afterProcess(java.lang.Object item,
java.lang.Object result)
throws java.lang.Exception
afterProcess in interface ItemProcessListeneritem - specifies the item about to be processed.result - specifies the item to pass to the item writer.java.lang.Exception - (or subclass) if an error occurs.public void onProcessError(java.lang.Object item,
java.lang.Exception ex)
throws java.lang.Exception
onProcessError in interface ItemProcessListeneritem - specifies the item about to be processed.ex - specifies the exception thrown by the item processor.java.lang.Exception - (or subclass) if an error occurs.