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
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionTaskBatchExecutionListenerFactoryBean(DataSource dataSource, TaskExplorer taskExplorer) Initializes the TaskBatchExecutionListenerFactoryBean and defaults the tablePrefix toTaskProperties.DEFAULT_TABLE_PREFIX.TaskBatchExecutionListenerFactoryBean(DataSource dataSource, TaskExplorer taskExplorer, String tablePrefix) Initializes the TaskBatchExecutionListenerFactoryBean. -
Method Summary
-
Constructor Details
-
TaskBatchExecutionListenerFactoryBean
Initializes the TaskBatchExecutionListenerFactoryBean and defaults the tablePrefix toTaskProperties.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
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<TaskBatchExecutionListener>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<TaskBatchExecutionListener>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<TaskBatchExecutionListener>
-