public class CompositeItemReadListener<T> extends java.lang.Object implements ItemReadListener<T>
Constructor and Description |
---|
CompositeItemReadListener() |
Modifier and Type | Method and Description |
---|---|
void |
afterRead(T item)
Call the registered listeners in reverse order, respecting and
prioritising those that implement
Ordered . |
void |
beforeRead()
Call the registered listeners in order, respecting and prioritising those
that implement
Ordered . |
void |
onReadError(java.lang.Exception ex)
Call the registered listeners in reverse order, respecting and
prioritising those that implement
Ordered . |
void |
register(ItemReadListener<? super T> itemReaderListener)
Register additional listener.
|
void |
setListeners(java.util.List<? extends ItemReadListener<? super T>> itemReadListeners)
Public setter for the listeners.
|
public void setListeners(java.util.List<? extends ItemReadListener<? super T>> itemReadListeners)
itemReadListeners
- public void register(ItemReadListener<? super T> itemReaderListener)
itemReaderListener
- public void afterRead(T item)
Ordered
.afterRead
in interface ItemReadListener<T>
item
- returned from read()ItemReadListener.afterRead(java.lang.Object)
public void beforeRead()
Ordered
.beforeRead
in interface ItemReadListener<T>
ItemReadListener.beforeRead()
public void onReadError(java.lang.Exception ex)
Ordered
.onReadError
in interface ItemReadListener<T>
ex
- thrown from ItemWriter
ItemReadListener.onReadError(java.lang.Exception)