Example usage for org.springframework.batch.core.job SimpleStepHandler SimpleStepHandler

List of usage examples for org.springframework.batch.core.job SimpleStepHandler SimpleStepHandler

Introduction

In this page you can find the example usage for org.springframework.batch.core.job SimpleStepHandler SimpleStepHandler.

Prototype

public SimpleStepHandler(JobRepository jobRepository) 

Source Link

Usage

From source file:org.springframework.batch.core.job.AbstractJob.java

/**
 * Public setter for the {@link JobRepository} that is needed to manage the
 * state of the batch meta domain (jobs, steps, executions) during the life
 * of a job.// w  w  w. j  a  va  2  s .c om
 *
 * @param jobRepository
 */
public void setJobRepository(JobRepository jobRepository) {
    this.jobRepository = jobRepository;
    stepHandler = new SimpleStepHandler(jobRepository);
}