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
- 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 ItemReadListener
ex
- specifies the exception that occurred in the item reader.Exception
- (or subclass) if an error occurs.Copyright © 2017 JBoss by Red Hat. All rights reserved.