- All Implemented Interfaces:
- javax.batch.api.chunk.listener.ChunkListener, javax.batch.api.listener.StepListener
@Named(value="myChunkListener")
public class MyChunkListener
extends javax.batch.api.chunk.listener.AbstractChunkListener
implements javax.batch.api.listener.StepListener
Originally this class was going to be used to check that we could view an earlier-thrown
exception via StepContext.getException() in each of afterChunk(), onError(Exception).
After a mailing list comment that we should relax the requirements on the implementation
to make the exception immediately visible to other artifacts, we agreed to only check
that we saw the expected exception in afterStep().
The quick change then was to recast this MyChunkListener as both a ChunkListener and
StepListener.