- All Implemented Interfaces:
- org.springframework.batch.core.ItemProcessListener, org.springframework.batch.core.StepListener
public class EventEmittingItemProcessListener
extends Object
implements org.springframework.batch.core.ItemProcessListener
Provides informational messages around the ItemProcessListener
of a batch job.
The ItemProcessListener.beforeProcess(Object)
of this listener is a no-op.
ItemProcessListener.afterProcess(Object, Object)
returns a message if an item
was filtered (ItemProcessor
returned null), if the result of the processor was
equal to the input (via .equals
), or if they were not equal.
ItemProcessListener.onProcessError(Object, Exception)
provides the exception
via the BatchJobHeaders.BATCH_EXCEPTION
message header.
- Author:
- Michael Minella, Glenn Renfro