|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.batch.api.chunk.listener.AbstractItemProcessListener
public abstract class AbstractItemProcessListener
The AbstractItemProcessListener provides default implementations of less commonly implemented methods.
| Constructor Summary | |
|---|---|
AbstractItemProcessListener()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractItemProcessListener()
| Method Detail |
|---|
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.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||