Skip to content

Commit 9641f17

Browse files
HyunSangHanfmbenhassine
authored andcommitted
Fix @BeforeChunk/@AfterChunk to support Chunk parameter as documented
Signed-off-by: Hyunsang Han <gustkd3@gmail.com>
1 parent e183272 commit 9641f17

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/listener/StepListenerMetaData.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,16 @@
4646
* methods, their interfaces, annotation, and expected arguments.
4747
*
4848
* @author Lucas Ward
49+
* @author Hyunsang Han
4950
* @since 2.0
5051
* @see StepListenerFactoryBean
5152
*/
5253
public enum StepListenerMetaData implements ListenerMetaData {
5354

5455
BEFORE_STEP("beforeStep", "before-step-method", BeforeStep.class, StepExecutionListener.class, StepExecution.class),
5556
AFTER_STEP("afterStep", "after-step-method", AfterStep.class, StepExecutionListener.class, StepExecution.class),
56-
BEFORE_CHUNK("beforeChunk", "before-chunk-method", BeforeChunk.class, ChunkListener.class, ChunkContext.class),
57-
AFTER_CHUNK("afterChunk", "after-chunk-method", AfterChunk.class, ChunkListener.class, ChunkContext.class),
57+
BEFORE_CHUNK("beforeChunk", "before-chunk-method", BeforeChunk.class, ChunkListener.class, Chunk.class),
58+
AFTER_CHUNK("afterChunk", "after-chunk-method", AfterChunk.class, ChunkListener.class, Chunk.class),
5859
AFTER_CHUNK_ERROR("afterChunkError", "after-chunk-error-method", AfterChunkError.class, ChunkListener.class,
5960
ChunkContext.class),
6061
BEFORE_READ("beforeRead", "before-read-method", BeforeRead.class, ItemReadListener.class),

0 commit comments

Comments
 (0)