public abstract class AbstractItemProcessListener extends Object implements ItemProcessListener
Constructor and Description |
---|
AbstractItemProcessListener() |
Modifier and Type | Method and Description |
---|---|
void |
afterProcess(Object item,
Object result)
Override this method if the ItemProcessListener
will do something after the item is processed.
|
void |
beforeProcess(Object item)
Override this method if the ItemProcessListener
will do something before the item is processed.
|
void |
onProcessError(Object item,
Exception ex)
Override this method if the ItemProcessListener
will do something when the ItemProcessor processItem
method throws an exception.
|
public void beforeProcess(Object item) throws Exception
beforeProcess
in interface ItemProcessListener
item
- specifies the item about to be processed.Exception
- (or subclass) if an error occurs.public void afterProcess(Object item, Object result) throws Exception
afterProcess
in interface ItemProcessListener
item
- specifies the item about to be processed.result
- specifies the item to pass to the item writer.Exception
- (or subclass) if an error occurs.public void onProcessError(Object item, Exception ex) throws Exception
onProcessError
in interface ItemProcessListener
item
- specifies the item about to be processed.ex
- specifies the exception thrown by the item processor.Exception
- (or subclass) if an error occurs.Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.