public abstract class AbstractItemReadListener extends java.lang.Object implements ItemReadListener
Constructor and Description |
---|
AbstractItemReadListener() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void beforeRead() throws java.lang.Exception
beforeRead
in interface ItemReadListener
java.lang.Exception
- (or subclass) if an error occurs.public void afterRead(java.lang.Object item) throws java.lang.Exception
afterRead
in interface ItemReadListener
item
- last item read by ItemReaderjava.lang.Exception
- (or subclass) if an error occurs.public void onReadError(java.lang.Exception ex) throws java.lang.Exception
onReadError
in interface ItemReadListener
ex
- exception thrown from readItem methodjava.lang.Exception
- (or subclass) if an error occurs.