Package org.springframework.batch.core.annotation
package org.springframework.batch.core.annotation
Annotations for java based configuration of listeners.
- Author:
- Michael Minella
-
Annotation InterfacesClassDescriptionMarks a method to be called after a chunk is executed.
Expected signature: void afterChunk(ChunkContext context)Marks a method to be called after a chunk has failed and been marked for rollback.
Expected signature: void afterFailedChunk(ChunkContext context)Marks a method to be called after aJobhas completed.Marks a method to be called after an item is passed to anItemProcessor.Marks a method to be called after an item is read from anItemReader
Expected signature: void afterRead(T item)Marks a method to be called after aStephas completed.Marks a method to be called after an item is passed to anItemWriter.Marks a method to be called before a chunk is executed.Marks a method to be called before aJobis executed, which comes after aJobExecutionis created and persisted but before the firstStepis executed.Marks a method to be called before an item is passed to anItemProcessor
Expected signature: void beforeProcess(T item)Marks a method to be called before an item is read from anItemReader
Expected signature: void beforeRead()Marks a method to be called before aStepis executed, which comes after aStepExecutionis created and persisted but before the first item is read.Marks a method to be called before a chunk is passed to anItemWriter.Marks a method to be called if an exception is thrown by anItemProcessor.Marks a method to be called if an exception is thrown by anItemReader.Marks a method to be called when an item is skipped due to an exception thrown in theItemProcessor.
Expected signature: void onSkipInProcess(T item,Throwablet)Marks a method to be called when an item is skipped due to an exception thrown in theItemReader.Marks a method to be called when an item is skipped due to an exception thrown in theItemWriter.
Expected signature: void onSkipInWrite(S item,Throwablet)Marks a method to be called if an exception is thrown by anItemWriter.