|
|||||||||||
| 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(Object item,
Object result)
Override this method if the ItemProcessListener will do something after the item is processed. |
void |
beforeProcess(Object item)
Override this method if the ItemProcessListener will do something before the item is processed. |
void |
onProcessError(Object 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(Object item)
throws Exception
beforeProcess in interface ItemProcessListeneritem - specifies the item about to be processed.
Exception - (or subclass) if an error occurs.
public void afterProcess(Object item,
Object result)
throws Exception
afterProcess in interface ItemProcessListeneritem - 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(Object item,
Exception ex)
throws Exception
onProcessError in interface ItemProcessListeneritem - 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 | ||||||||||
© Copyright IBM Corp. 2013
Licensed under the Apache License, Version 2.0