|
34 | 34 | import org.springframework.batch.core.JobExecution;
|
35 | 35 | import org.springframework.batch.core.JobParameters;
|
36 | 36 | import org.springframework.batch.core.JobParametersBuilder;
|
37 |
| -import org.springframework.batch.core.configuration.JobRegistry; |
38 | 37 | import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing;
|
39 |
| -import org.springframework.batch.core.configuration.support.JobRegistryBeanPostProcessor; |
40 |
| -import org.springframework.batch.core.explore.JobExplorer; |
41 | 38 | import org.springframework.batch.core.job.builder.JobBuilder;
|
42 | 39 | import org.springframework.batch.core.launch.JobLauncher;
|
43 | 40 | import org.springframework.batch.core.launch.JobOperator;
|
44 |
| -import org.springframework.batch.core.launch.support.SimpleJobOperator; |
45 | 41 | import org.springframework.batch.core.repository.JobRepository;
|
46 | 42 | import org.springframework.batch.core.step.builder.StepBuilder;
|
47 | 43 | import org.springframework.beans.factory.annotation.Autowired;
|
@@ -151,24 +147,6 @@ public Job job(JobRepository jobRepository, PlatformTransactionManager transacti
|
151 | 147 | .build();
|
152 | 148 | }
|
153 | 149 |
|
154 |
| - @Bean |
155 |
| - public JobOperator jobOperator(JobLauncher jobLauncher, JobRegistry jobRegistry, JobExplorer jobExplorer, |
156 |
| - JobRepository jobRepository) { |
157 |
| - SimpleJobOperator jobOperator = new SimpleJobOperator(); |
158 |
| - jobOperator.setJobExplorer(jobExplorer); |
159 |
| - jobOperator.setJobLauncher(jobLauncher); |
160 |
| - jobOperator.setJobRegistry(jobRegistry); |
161 |
| - jobOperator.setJobRepository(jobRepository); |
162 |
| - return jobOperator; |
163 |
| - } |
164 |
| - |
165 |
| - @Bean |
166 |
| - public JobRegistryBeanPostProcessor jobRegistryBeanPostProcessor(JobRegistry jobRegistry) { |
167 |
| - JobRegistryBeanPostProcessor jobRegistryBeanPostProcessor = new JobRegistryBeanPostProcessor(); |
168 |
| - jobRegistryBeanPostProcessor.setJobRegistry(jobRegistry); |
169 |
| - return jobRegistryBeanPostProcessor; |
170 |
| - } |
171 |
| - |
172 | 150 | @Bean
|
173 | 151 | public ConfigurableConversionService conversionService() {
|
174 | 152 | DefaultConversionService conversionService = new DefaultConversionService();
|
|
0 commit comments