It looks like ItemReader
as the methods open()
, readItem()
, close()
so it knows about it’s lifecycle. The similar is the case for ItemWriter
. However ItemProcessor
and Batchlet
look completely agnostic.
But then there are the interfaces JobListener
, StepListener
, ChunkListener
. I implemented them and registered them via my batch xml file. But is it possible for e.g. MyItemProcessor
to implement ChunkListener
and StepListener
and get notified about these lifecycle events?