Example usage for org.springframework.batch.core.step.job JobStep setJobParametersExtractor

List of usage examples for org.springframework.batch.core.step.job JobStep setJobParametersExtractor

Introduction

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

Prototype

public void setJobParametersExtractor(JobParametersExtractor jobParametersExtractor) 

Source Link

Document

The JobParametersExtractor is used to extract JobParametersExtractor from the StepExecution to run the Job .

Usage

From source file:org.springframework.batch.core.configuration.xml.StepParserStepFactoryBean.java

@SuppressWarnings("serial")
private void configureJobStep(JobStep ts) throws Exception {
    configureAbstractStep(ts);/*from  w w w .  j a v  a  2 s .c  o m*/
    if (job != null) {
        ts.setJob(job);
    }
    if (jobParametersExtractor != null) {
        ts.setJobParametersExtractor(jobParametersExtractor);
    }
    if (jobLauncher == null) {
        SimpleJobLauncher jobLauncher = new SimpleJobLauncher();
        jobLauncher.setJobRepository(jobRepository);
        jobLauncher.afterPropertiesSet();
        this.jobLauncher = jobLauncher;
    }
    ts.setJobLauncher(jobLauncher);
}