|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.batch.api.chunk.listener.AbstractItemProcessListener<T,R>
T - specifies the item type read by the ItemProcessor paired with this
ItemProcessListener.R - specifies the item type returned by the ItemProcessor paired with
this ItemProcessListener.public abstract class AbstractItemProcessListener<T,R>
The AbstractItemProcessListener provides default implementations of less commonly implemented methods.
| Constructor Summary | |
|---|---|
AbstractItemProcessListener()
|
|
| Method Summary | |
|---|---|
void |
afterProcess(T item,
R result)
Override this method if the ItemProcessListener will do something after the item is processed. |
void |
beforeProcess(T item)
Override this method if the ItemProcessListener will do something before the item is processed. |
void |
onProcessError(T item,
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(T item)
throws Exception
beforeProcess in interface ItemProcessListener<T,R>item - specifies the item about to be processed.
Exception - (or subclass) if an error occurs.
public void afterProcess(T item,
R result)
throws Exception
afterProcess in interface ItemProcessListener<T,R>item - specifies the item about to be processed.result - specifies the item to pass to the item writer.
Exception - (or subclass) if an error occurs.
public void onProcessError(T item,
Exception ex)
throws Exception
onProcessError in interface ItemProcessListener<T,R>item - specifies the item about to be processed.ex - specifies the exception thrown by the item processor.
Exception - (or subclass) if an error occurs.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||