org.springframework.batch.core.configuration.support.JobRegistryBeanPostProcessor Java Examples

The following examples show how to use org.springframework.batch.core.configuration.support.JobRegistryBeanPostProcessor. 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: JobConfigure.java    From SpringAll with MIT License 5 votes vote down vote up
/**
 * 注册JobRegistryBeanPostProcessor bean
 * 用于将任务名称和实际的任务关联起来
 */
@Bean
public JobRegistryBeanPostProcessor processor(JobRegistry jobRegistry, ApplicationContext applicationContext) {
    JobRegistryBeanPostProcessor postProcessor = new JobRegistryBeanPostProcessor();
    postProcessor.setJobRegistry(jobRegistry);
    postProcessor.setBeanFactory(applicationContext.getAutowireCapableBeanFactory());
    return postProcessor;
}
 
Example #2
Source File: BeansBatchConfig.java    From jump-the-queue with Apache License 2.0 5 votes vote down vote up
/**
 * This method is creating JobRegistryBeanPostProcessor
 *
 * @return JobRegistryBeanPostProcessor
 */
@Bean
@DependsOn("jobRegistry")
public JobRegistryBeanPostProcessor jobRegistryBeanPostProcessor() {

  JobRegistryBeanPostProcessor postProcessor = new JobRegistryBeanPostProcessor();
  postProcessor.setJobRegistry(this.jobRegistry);
  return postProcessor;
}
 
Example #3
Source File: BatchJobConfiguration.java    From patient-batch-loader with GNU General Public License v3.0 4 votes vote down vote up
@Bean
JobRegistryBeanPostProcessor jobRegistryBeanPostProcessor(JobRegistry jobRegistry) {
    JobRegistryBeanPostProcessor postProcessor = new JobRegistryBeanPostProcessor();
    postProcessor.setJobRegistry(jobRegistry);
    return postProcessor;
}