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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionpostProcessAfterInitialization
(Object bean, String beanName) void
setJobLauncherProvider
(org.springframework.beans.factory.ObjectProvider<JobLauncher> jobLauncherProvider) void
setJobProvider
(org.springframework.beans.factory.ObjectProvider<Job> jobProvider) void
setJobRepositoryProvider
(org.springframework.beans.factory.ObjectProvider<JobRepository> jobRepositoryProvider) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.beans.factory.config.BeanPostProcessor
postProcessBeforeInitialization
-
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 interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
-