T
- type to be returned via a read on the associated ItemReader
public class ItemReadListenerAdapter<T> extends java.lang.Object implements ItemReadListener<T>
ItemReadListener
to
a ItemReadListener
.Constructor and Description |
---|
ItemReadListenerAdapter(javax.batch.api.chunk.listener.ItemReadListener delegate) |
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.
|
public ItemReadListenerAdapter(javax.batch.api.chunk.listener.ItemReadListener delegate)
public void beforeRead()
ItemReadListener
ItemReader.read()
beforeRead
in interface ItemReadListener<T>
public void afterRead(T item)
ItemReadListener
ItemReader.read()
afterRead
in interface ItemReadListener<T>
item
- returned from read()public void onReadError(java.lang.Exception ex)
ItemReadListener
onReadError
in interface ItemReadListener<T>
ex
- thrown from ItemWriter