Class BatchTestContextBeanPostProcessor

java.lang.Object
org.springframework.batch.test.context.BatchTestContextBeanPostProcessor
All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor

public class BatchTestContextBeanPostProcessor extends Object implements org.springframework.beans.factory.config.BeanPostProcessor
BeanPostProcessor implementation that injects a job bean into JobLauncherTestUtils if there is a unique job bean.
Since:
5.0
Author:
Henning Pƶttker, Mahmoud Ben Hassine
  • Constructor Details

    • BatchTestContextBeanPostProcessor

      public BatchTestContextBeanPostProcessor()
  • Method Details

    • setJobProvider

      @Autowired public void setJobProvider(org.springframework.beans.factory.ObjectProvider<Job> jobProvider)
    • setJobRepositoryProvider

      @Autowired public void setJobRepositoryProvider(org.springframework.beans.factory.ObjectProvider<JobRepository> jobRepositoryProvider)
    • setJobLauncherProvider

      @Autowired public void setJobLauncherProvider(org.springframework.beans.factory.ObjectProvider<JobLauncher> jobLauncherProvider)
    • postProcessAfterInitialization

      public Object postProcessAfterInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessAfterInitialization in interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException