|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.batch.api.chunk.listener.AbstractItemReadListener
public abstract class AbstractItemReadListener
The AbstractItemReadListener provides default implementations of less commonly implemented methods.
| Constructor Summary | |
|---|---|
AbstractItemReadListener()
|
|
| Method Summary | |
|---|---|
void |
afterRead(java.lang.Object item)
Override this method if the ItemReadListener will do something after the item is read. |
void |
beforeRead()
Override this method if the ItemReadListener will do something before the item is read. |
void |
onReadError(java.lang.Exception ex)
Override this method if the ItemReadListener will do something when the ItemReader readItem 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 AbstractItemReadListener()
| Method Detail |
|---|
public void beforeRead()
throws java.lang.Exception
beforeRead in interface ItemReadListenerjava.lang.Exception - (or subclass) if an error occurs.
public void afterRead(java.lang.Object item)
throws java.lang.Exception
afterRead in interface ItemReadListeneritem - specifies the item read by the item reader.
java.lang.Exception - (or subclass) if an error occurs.
public void onReadError(java.lang.Exception ex)
throws java.lang.Exception
onReadError in interface ItemReadListenerex - specifies the exception that occurred in the item reader.
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 | ||||||||||