# Package org.springframework.batch.core.annotation

package org.springframework.batch.core.annotation
Annotations for java based configuration of listeners.

Author:
  Michael Minella

- Related Packages
  Package
  Description
  org.springframework.batch.core
  Core domain context for Spring Batch covering jobs, steps, configuration and execution abstractions.
- Annotation Interfaces
  Class
  Description
  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 a `Job` has completed.
  AfterProcess
  Marks a method to be called after an item is passed to an `ItemProcessor`
  Expected signature: void afterProcess(T item, S result)
  AfterRead
  Marks a method to be called after an item is read from an `ItemReader`
  Expected signature: void afterRead(T item)
  AfterStep
  Marks a method to be called after a `Step` has completed.
  AfterWrite
  Marks a method to be called after an item is passed to an `ItemWriter`
  Expected signature: void afterWrite(`List`<? extends S> items)
  BeforeChunk
  Marks a method to be called before a chunk is executed.
  BeforeJob
  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.
  BeforeProcess
  Marks a method to be called before an item is passed to an `ItemProcessor`
  Expected signature: void beforeProcess(T item)
  BeforeRead
  Marks a method to be called before an item is read from an `ItemReader`
  Expected signature: void beforeRead()
  BeforeStep
  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.
  BeforeWrite
  Marks a method to be called before an item is passed to an `ItemWriter`
  Expected signature: void beforeWrite(`List`<? extends S> items)
  OnProcessError
  Marks a method to be called if an exception is thrown by an `ItemProcessor`
  Expected signature: void onProcessError(T item, `Exception` e)
  OnReadError
  Marks a method to be called if an exception is thrown by an `ItemReader`
  Expected signature: void onReadError(`Exception` ex)
  OnSkipInProcess
  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)
  OnSkipInRead
  Marks a method to be called when an item is skipped due to an exception thrown in the `ItemReader`
  Expected signature: void onSkipInRead(`Throwable` t)
  OnSkipInWrite
  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)
  OnWriteError
  Marks a method to be called if an exception is thrown by an `ItemWriter`
  Expected signature: void onWriteError(`Exception` exception, `List`<? extends S> items)