Example usage for org.springframework.batch.core.launch.support SimpleJobLauncher afterPropertiesSet

List of usage examples for org.springframework.batch.core.launch.support SimpleJobLauncher afterPropertiesSet

Introduction

In this page you can find the example usage for org.springframework.batch.core.launch.support SimpleJobLauncher afterPropertiesSet.

Prototype

@Override
public void afterPropertiesSet() throws Exception 

Source Link

Document

Ensure the required dependencies of a JobRepository have been set.

Usage

From source file:org.my.spring.batch.java.config.demo.configuration.BatchConfiguration.java

@Override
@Bean(name = "jobLauncher")
public JobLauncher getJobLauncher() throws Exception {
    SimpleJobLauncher jobLauncher = new SimpleJobLauncher();
    jobLauncher.setJobRepository(getJobRepository());
    jobLauncher.afterPropertiesSet();
    return jobLauncher;
}

From source file:org.cloudfoundry.identity.uaa.scim.job.AbstractJobIntegrationTests.java

@Autowired
public void setJobRepository(JobRepository jobRepository) throws Exception {
    SimpleJobLauncher jobLauncher = new SimpleJobLauncher();
    jobLauncher.setJobRepository(jobRepository);
    jobLauncher.afterPropertiesSet();
    this.jobLauncher = jobLauncher;
}

From source file:io.getlime.push.configuration.BatchSendingConfiguration.java

private JobLauncher createJobLauncher() throws Exception {
    SimpleJobLauncher jobLauncher = new SimpleJobLauncher();
    jobLauncher.setJobRepository(jobRepository);
    jobLauncher.afterPropertiesSet();
    return jobLauncher;
}

From source file:uk.ac.kcl.batch.BatchConfigurer.java

@Bean
public JobLauncher jobLauncher() {
    SimpleJobLauncher jobLauncher = new SimpleJobLauncher();
    jobLauncher.setJobRepository(getJobRepository());
    try {/*from www.j av  a2s  .  c  om*/
        jobLauncher.afterPropertiesSet();
    } catch (Exception ex) {
        Logger.getLogger(BatchConfigurer.class.getName()).log(Level.SEVERE, null, ex);
    }
    return jobLauncher;
}

From source file:de.codecentric.batch.configuration.TaskExecutorBatchConfigurer.java

private JobLauncher createJobLauncher() throws Exception {
    SimpleJobLauncher jobLauncher = new SimpleJobLauncher();
    jobLauncher.setJobRepository(jobRepository);
    jobLauncher.setTaskExecutor(taskExecutor);
    jobLauncher.afterPropertiesSet();
    return jobLauncher;
}

From source file:org.springframework.batch.core.configuration.annotation.DefaultBatchConfigurer.java

protected JobLauncher createJobLauncher() throws Exception {
    SimpleJobLauncher jobLauncher = new SimpleJobLauncher();
    jobLauncher.setJobRepository(jobRepository);
    jobLauncher.afterPropertiesSet();
    return jobLauncher;
}

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

@SuppressWarnings("serial")
private void configureJobStep(JobStep ts) throws Exception {
    configureAbstractStep(ts);// w w  w. j a v a  2s .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);
}

From source file:org.springframework.boot.autoconfigure.batch.BasicBatchConfigurer.java

private JobLauncher createJobLauncher() throws Exception {
    SimpleJobLauncher jobLauncher = new SimpleJobLauncher();
    jobLauncher.setJobRepository(getJobRepository());
    jobLauncher.afterPropertiesSet();
    return jobLauncher;
}