Package org.springframework.cloud.task.batch.configuration

# 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

  Constructors
  Constructor
  Description
  `TaskBatchExecutionListenerBeanPostProcessor()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Object`
  `postProcessAfterInitialization(Object bean, String beanName)`
  `Object`
  `postProcessBeforeInitialization(Object bean, String beanName)`
  `void`
  `setJobNames(List<String> jobNames)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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)