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 Details

    • TaskBatchExecutionListenerBeanPostProcessor

      public TaskBatchExecutionListenerBeanPostProcessor()
  • Method Details

    • postProcessBeforeInitialization

      public Object postProcessBeforeInitialization(Object bean, String beanName) throws org.springframework.beans.BeansException
      Specified by:
      postProcessBeforeInitialization in interface org.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 interface org.springframework.beans.factory.config.BeanPostProcessor
      Throws:
      org.springframework.beans.BeansException
    • setJobNames

      public void setJobNames(List<String> jobNames)