public interface ItemProcessListener
Modifier and Type | Method and Description |
---|---|
void |
afterProcess(Object item,
Object result)
The afterProcess method receives control after an item
processor processes an item.
|
void |
beforeProcess(Object item)
The beforeProcess method receives control before
an item processor is called to process the next item.
|
void |
onProcessError(Object item,
Exception ex)
The onProcessError method receives control after an
item processor processItem throws an exception.
|
void beforeProcess(Object item) throws Exception
item
- specifies the item about to be processed.Exception
- if an error occurs.void afterProcess(Object item, Object result) throws Exception
item
- specifies the item processed by the item processor.result
- specifies the item to pass to the item writer.Exception
- if an error occurs.void onProcessError(Object item, Exception ex) throws Exception
item
- specifies the item the processor attempted to process.ex
- specifies the exception thrown by the item processor.Exception
- if an error occursCopyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.