public interface ItemReadListener<T> extends StepListener
Modifier and Type | Method and Description |
---|---|
void |
afterRead(T item)
Called after
ItemReader.read() . |
void |
beforeRead()
Called before
ItemReader.read() |
void |
onReadError(java.lang.Exception ex)
Called if an error occurs while trying to read.
|
void beforeRead()
ItemReader.read()
void afterRead(T item)
ItemReader.read()
.
This method is called only for actual items (ie it is not called when the
reader returns null).item
- returned from read()void onReadError(java.lang.Exception ex)
ex
- thrown from ItemReader