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.Constructor and Description |
---|
TaskBatchExecutionListenerFactoryBean(DataSource dataSource,
TaskExplorer taskExplorer)
Initializes the TaskBatchExecutionListenerFactoryBean and defaults the
tablePrefix to
TaskProperties.DEFAULT_TABLE_PREFIX . |
TaskBatchExecutionListenerFactoryBean(DataSource dataSource,
TaskExplorer taskExplorer,
String tablePrefix)
Initializes the TaskBatchExecutionListenerFactoryBean.
|
Modifier and Type | Method and Description |
---|---|
TaskBatchExecutionListener |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
public TaskBatchExecutionListenerFactoryBean(DataSource dataSource, TaskExplorer taskExplorer)
TaskProperties.DEFAULT_TABLE_PREFIX
.dataSource
- the dataSource to use for the TaskBatchExecutionListener.taskExplorer
- the taskExplorer to use for the TaskBatchExecutionListener.public TaskBatchExecutionListenerFactoryBean(DataSource dataSource, TaskExplorer taskExplorer, String tablePrefix)
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.public TaskBatchExecutionListener getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<TaskBatchExecutionListener>
Exception
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<TaskBatchExecutionListener>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<TaskBatchExecutionListener>
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.