程序包 org.springframework.batch.core.annotation
Annotations for java based configuration of listeners.
- 作者:
- Michael Minella
注释类型概要 注释类型 说明 AfterChunk Marks a method to be called after a chunk is executed.
Expected signature: void afterChunk(ChunkContext context)AfterChunkError Marks a method to be called after a has failed and been marked for rollback.
Expected signature: void afterFailedChunk(ChunkContext context)AfterJob Marks a method to be called after aJob
has completed.AfterProcess Marks a method to be called after an item is passed to anItemProcessor
Expected signature: void afterProcess(T item, S result)AfterRead Marks a method to be called after an item is read from anItemReader
Expected signature: void afterRead(T item)AfterStep Marks a method to be called after aStep
has completed.AfterWrite Marks a method to be called after an item is passed to anItemWriter
Expected signature: void afterWrite(List
<?BeforeChunk Marks a method to be called before a chunk is executed.BeforeJob Marks a method to be called before aJob
is executed, which comes after aJobExecution
is created and persisted, but before the firstStep
is executed.BeforeProcess Marks a method to be called before an item is passed to anItemProcessor
Expected signature: void beforeProcess(T item)BeforeRead Marks a method to be called before an item is read from anItemReader
Expected signature: void beforeRead()BeforeStep Marks a method to be called before aStep
is executed, which comes after aStepExecution
is created and persisted, but before the first item is read.BeforeWrite Marks a method to be called before an item is passed to anItemWriter
Expected signature: void beforeWrite(List
<?OnProcessError Marks a method to be called if an exception is thrown by anItemProcessor
Expected signature: void onProcessError(T item,Exception
e)OnReadError Marks a method to be called if an exception is thrown by anItemReader
Expected signature: void onReadError(Exception
ex)OnSkipInProcess Marks a method to be called when an item is skipped due to an exception thrown in theItemProcessor
.
Expected signature: void onSkipInProcess(T item,Throwable
t)OnSkipInRead Marks a method to be called when an item is skipped due to an exception thrown in theItemReader
Expected signature: void onSkipInRead(Throwable
t)OnSkipInWrite Marks a method to be called when an item is skipped due to an exception thrown in theItemWriter
.
Expected signature: void onSkipInWrite(S item,Throwable
t)OnWriteError Marks a method to be called if an exception is thrown by anItemWriter
Expected signature: void onWriteError(Exception
exception,List
<?