org.springframework.batch.core.jsr.JsrJobParametersConverter Java Examples
The following examples show how to use
org.springframework.batch.core.jsr.JsrJobParametersConverter.
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: SimpleJobServiceFactoryBean.java From spring-cloud-dataflow with Apache License 2.0 | 5 votes |
/** * Create a {@link SimpleJobService} from the configuration provided. * * @see FactoryBean#getObject() */ @Override public JobService getObject() throws Exception { JsrJobParametersConverter jobParametersConverter = new JsrJobParametersConverter(dataSource); jobParametersConverter.afterPropertiesSet(); JsrJobOperator jsrJobOperator = new JsrJobOperator(jobExplorer, jobRepository, jobParametersConverter, transactionManager); jsrJobOperator.afterPropertiesSet(); return new SimpleJobService(createJobInstanceDao(), createJobExecutionDao(), createStepExecutionDao(), jobRepository, createExecutionContextDao(), jsrJobOperator); }
Example #2
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); }