Class TaskBatchExecutionListenerFactoryBean

java.lang.Object
org.springframework.cloud.task.batch.configuration.TaskBatchExecutionListenerFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<TaskBatchExecutionListener>

public class TaskBatchExecutionListenerFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<TaskBatchExecutionListener>
FactoryBean for a TaskBatchExecutionListener. Provides a jdbc based listener if there is a DataSource available. Otherwise, builds a listener that uses the map based implementation.
Author:
Michael Minella
  • Constructor Details

    • TaskBatchExecutionListenerFactoryBean

      public TaskBatchExecutionListenerFactoryBean(DataSource dataSource, TaskExplorer taskExplorer)
      Initializes the TaskBatchExecutionListenerFactoryBean and defaults the tablePrefix to TaskProperties.DEFAULT_TABLE_PREFIX.
      Parameters:
      dataSource - the dataSource to use for the TaskBatchExecutionListener.
      taskExplorer - the taskExplorer to use for the TaskBatchExecutionListener.
    • TaskBatchExecutionListenerFactoryBean

      public TaskBatchExecutionListenerFactoryBean(DataSource dataSource, TaskExplorer taskExplorer, String tablePrefix)
      Initializes the TaskBatchExecutionListenerFactoryBean.
      Parameters:
      dataSource - the dataSource to use for the TaskBatchExecutionListener.
      taskExplorer - the taskExplorer to use for the TaskBatchExecutionListener.
      tablePrefix - the prefix for the task tables accessed by the TaskBatchExecutionListener.
  • Method Details