org.springframework.batch.core.converter.JobParametersConverter Java Examples
The following examples show how to use
org.springframework.batch.core.converter.JobParametersConverter.
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: BatchConfiguration.java From spring-graalvm-native with Apache License 2.0 | 5 votes |
@Bean @ConditionalOnMissingBean(JobOperator.class) public JobOperator jobOperator(ObjectProvider<JobParametersConverter> jobParametersConverter, JobExplorer jobExplorer, JobLauncher jobLauncher, ListableJobLocator jobRegistry, JobRepository jobRepository) throws Exception { System.out.println("FOOBAR"); SimpleJobOperator factory = new SimpleJobOperator(); factory.setJobExplorer(jobExplorer); factory.setJobLauncher(jobLauncher); factory.setJobRegistry(jobRegistry); factory.setJobRepository(jobRepository); jobParametersConverter.ifAvailable(factory::setJobParametersConverter); return factory; }
Example #2
Source File: CustomJsrJobOperator.java From spring-boot-starter-batch-web with Apache License 2.0 | 5 votes |
public CustomJsrJobOperator(JobExplorer jobExplorer, JobRepository jobRepository, JobParametersConverter jobParametersConverter, AddListenerToJobService addListenerToJobService, PlatformTransactionManager transactionManager) { super(jobExplorer, jobRepository, jobParametersConverter, transactionManager); this.jobRepository = jobRepository; this.jobParametersConverter = jobParametersConverter; this.addListenerToJobService = addListenerToJobService; }
Example #3
Source File: BatchConfiguration.java From spring-boot-doma2-sample with Apache License 2.0 | 4 votes |
@Bean public JobParametersConverter jobParametersConverter(DataSource dataSource) { return new JsrJobParametersConverter(dataSource); }