|
|||||||||||
| 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(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(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 Exception
beforeRead in interface ItemReadListenerException - (or subclass) if an error occurs.
public void afterRead(Object item)
throws Exception
afterRead in interface ItemReadListeneritem - specifies the item read by the item reader.
Exception - (or subclass) if an error occurs.
public void onReadError(Exception ex)
throws Exception
onReadError in interface ItemReadListenerex - specifies the exception that occurred in the item reader.
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