I use Spring Batch in a project and I'm looking for a way to pre-process all items of a Chunk
before the ItemProcessor
starts processing. I need to process the items of the chunk together.
There is a ChunkListener
, which is called only before the ItemReader
starts, but not before the ItemProcessor
starts. There is also a ChunkProvider
, which fills the chunk with items. But I found no documentation how to grab the filled chunk.
How can I access all items of Chunk
after the step finished reading?