Java Code Examples for org.springframework.batch.core.launch.support.SimpleJobLauncher#afterPropertiesSet()
The following examples show how to use
org.springframework.batch.core.launch.support.SimpleJobLauncher#afterPropertiesSet() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SpringBatchConfiguration.java From spring-cloud with Apache License 2.0 | 5 votes |
private JobLauncher createJobLauncher() throws Exception { SimpleJobLauncher jobLauncher = new SimpleJobLauncher(); jobLauncher.setJobRepository(jobRepository); jobLauncher.setTaskExecutor(new SimpleAsyncTaskExecutor()); jobLauncher.afterPropertiesSet(); return jobLauncher; }
Example 2
Source File: TaskJobLauncherCommandLineRunnerTests.java From spring-cloud-task with Apache License 2.0 | 5 votes |
protected JobLauncher createJobLauncher() throws Exception { SimpleJobLauncher jobLauncher = new SimpleJobLauncher(); jobLauncher.setJobRepository(getJobRepository()); jobLauncher.setTaskExecutor(new ConcurrentTaskExecutor()); jobLauncher.afterPropertiesSet(); return jobLauncher; }
Example 3
Source File: TaskExecutorBatchConfiguration.java From spring-boot-starter-batch-web with Apache License 2.0 | 5 votes |
private JobLauncher createJobLauncher() throws Exception { SimpleJobLauncher simpleJobLauncher = new SimpleJobLauncher(); simpleJobLauncher.setJobRepository(jobRepository); simpleJobLauncher.setTaskExecutor(taskExecutor); simpleJobLauncher.afterPropertiesSet(); return simpleJobLauncher; }
Example 4
Source File: SpringbatchPartitionConfig.java From tutorials with MIT License | 5 votes |
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; }
Example 5
Source File: SpringConfig.java From tutorials with MIT License | 5 votes |
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; }
Example 6
Source File: JpaBatchConfigurer.java From spring4-sandbox with Apache License 2.0 | 5 votes |
private JobLauncher createJobLauncher() throws Exception { SimpleJobLauncher jobLauncher = new SimpleJobLauncher(); jobLauncher.setJobRepository(jobRepository); jobLauncher.setTaskExecutor( new SimpleAsyncTaskExecutor()); jobLauncher.afterPropertiesSet(); return jobLauncher; }
Example 7
Source File: BatchConfiguration.java From patient-batch-loader with GNU General Public License v3.0 | 4 votes |
protected JobLauncher createJobLauncher() throws Exception { SimpleJobLauncher jobLauncher = new SimpleJobLauncher(); jobLauncher.setJobRepository(jobRepository); jobLauncher.afterPropertiesSet(); return jobLauncher; }
Example 8
Source File: DefaultSpringBatchLightminBatchConfigurer.java From spring-batch-lightmin with Apache License 2.0 | 4 votes |
protected JobLauncher createJobLauncher() throws Exception { final SimpleJobLauncher jobLauncher = new SimpleJobLauncher(); jobLauncher.setJobRepository(this.jobRepository); jobLauncher.afterPropertiesSet(); return jobLauncher; }