org.springframework.batch.core.job

## Interface StepHandler

- All Known Implementing Classes:
    JsrStepHandler, SimpleStepHandler

      public interface StepHandler

  Strategy interface for handling a `Step` on behalf of a `Job`.
  Author:
    Dave Syer

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `StepExecution` | `handleStep(Step step, JobExecution jobExecution)` Handle a step and return the execution for it.

- - ### Method Detail

    - #### handleStep

          StepExecution handleStep(Step step,
                                   JobExecution jobExecution)
                            throws JobInterruptedException,
                                   JobRestartException,
                                   StartLimitExceededException

      Handle a step and return the execution for it. Does not save the `JobExecution`, but should manage the persistence of the `StepExecution` if required (e.g. at least it needs to be added to a repository before the step can be executed).
      Parameters:
        `step` - a `Step`
        `jobExecution` - a `JobExecution`
      Returns:
        an execution of the step
      Throws:
        `JobInterruptedException` - if there is an interruption
        `JobRestartException` - if there is a problem restarting a failed step
        `StartLimitExceededException` - if the step exceeds its start limit
      See Also:
        `Job.execute(JobExecution)`, `Step.execute(StepExecution)`