public abstract class AbstractItemReadListener extends Object implements ItemReadListener
| Constructor and Description |
|---|
AbstractItemReadListener() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.