use of org.springframework.batch.core.launch.support.SimpleJobLauncher in project tutorials by eugenp.
the class TaskletsConfig method jobLauncher.
@Bean
public JobLauncher jobLauncher() throws Exception {
SimpleJobLauncher jobLauncher = new SimpleJobLauncher();
jobLauncher.setJobRepository(jobRepository());
return jobLauncher;
}
use of org.springframework.batch.core.launch.support.SimpleJobLauncher in project spring-boot by spring-projects.
the class BasicBatchConfigurer method createJobLauncher.
protected JobLauncher createJobLauncher() throws Exception {
SimpleJobLauncher jobLauncher = new SimpleJobLauncher();
jobLauncher.setJobRepository(getJobRepository());
jobLauncher.afterPropertiesSet();
return jobLauncher;
}
use of org.springframework.batch.core.launch.support.SimpleJobLauncher in project hub-fortify-ssc-integration-service by blackducksoftware.
the class BatchSchedulerConfig method jobLauncher.
/**
* Create batch job launcher
*
* @return
* @throws Exception
*/
@Bean
public JobLauncher jobLauncher() throws Exception {
SimpleJobLauncher jobLauncher = new SimpleJobLauncher();
jobLauncher.setJobRepository(jobRepository());
return jobLauncher;
}
use of org.springframework.batch.core.launch.support.SimpleJobLauncher in project tutorials by eugenp.
the class SpringbatchPartitionConfig method getJobLauncher.
public JobLauncher getJobLauncher() throws Exception {
SimpleJobLauncher jobLauncher = new SimpleJobLauncher();
// SimpleJobLauncher's methods Throws Generic Exception,
// it would have been better to have a specific one
jobLauncher.setJobRepository(getJobRepository());
jobLauncher.afterPropertiesSet();
return jobLauncher;
}
Aggregations