Package org.springframework.batch.core.annotation


package org.springframework.batch.core.annotation
Annotations for java based configuration of listeners.
Author:
Michael Minella
  • Annotation Interfaces
    Class
    Description
    Marks 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 a Job has completed.
    Marks a method to be called after an item is passed to an ItemProcessor.
    Marks a method to be called after an item is read from an ItemReader

    Expected signature: void afterRead(T item)
    Marks a method to be called after a Step has completed.
    Marks a method to be called after an item is passed to an ItemWriter.
    Marks a method to be called before a chunk is executed.
    Marks a method to be called before a Job is executed, which comes after a JobExecution is created and persisted but before the first Step is executed.
    Marks a method to be called before an item is passed to an ItemProcessor

    Expected signature: void beforeProcess(T item)
    Marks a method to be called before an item is read from an ItemReader

    Expected signature: void beforeRead()
    Marks a method to be called before a Step is executed, which comes after a StepExecution is created and persisted but before the first item is read.
    Marks a method to be called before a chunk is passed to an ItemWriter.
    Marks a method to be called if an exception is thrown by an ItemProcessor.
    Marks a method to be called if an exception is thrown by an ItemReader.
    Marks a method to be called when an item is skipped due to an exception thrown in the ItemProcessor.

    Expected signature: void onSkipInProcess(T item, Throwable t)
    Marks a method to be called when an item is skipped due to an exception thrown in the ItemReader.
    Marks a method to be called when an item is skipped due to an exception thrown in the ItemWriter.

    Expected signature: void onSkipInWrite(S item, Throwable t)
    Marks a method to be called if an exception is thrown by an ItemWriter.