Class TaskBatchExecutionListenerBeanPostProcessor
java.lang.Object
org.springframework.cloud.task.batch.configuration.TaskBatchExecutionListenerBeanPostProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.config.BeanPostProcessor
public class TaskBatchExecutionListenerBeanPostProcessor
extends Object
implements org.springframework.beans.factory.config.BeanPostProcessor
Injects a configured
TaskBatchExecutionListener
into any batch jobs (beans
assignable to AbstractJob
) that are executed within the scope of a task. The
context this is used within is expected to have only one bean of type
TaskBatchExecutionListener
.- Author:
- Michael Minella
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionpostProcessAfterInitialization
(Object bean, String beanName) postProcessBeforeInitialization
(Object bean, String beanName) void
setJobNames
(List<String> jobNames)
-
Constructor Details
-
TaskBatchExecutionListenerBeanPostProcessor
public TaskBatchExecutionListenerBeanPostProcessor()
-
-
Method Details
-
postProcessBeforeInitialization
public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException - Specified by:
postProcessBeforeInitialization
in interfaceorg.springframework.beans.factory.config.BeanPostProcessor
- Throws:
org.springframework.beans.BeansException
-
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
-
setJobNames
-