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 ItemReadListener
Exception
- (or subclass) if an error occurs.public void afterRead(Object item) throws Exception
afterRead
in interface ItemReadListener
item
- last item read by ItemReaderException
- (or subclass) if an error occurs.public void onReadError(Exception ex) throws Exception
onReadError
in interface ItemReadListener
ex
- exception thrown from readItem methodException
- (or subclass) if an error occurs.Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.