public class TaskExecutionDaoFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<TaskExecutionDao>
FactoryBean
implementation that creates the appropriate
TaskExecutionDao
based on the provided information.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TABLE_PREFIX |
Constructor and Description |
---|
TaskExecutionDaoFactoryBean()
Default constructor will result in a Map based TaskExecutionDao.
|
TaskExecutionDaoFactoryBean(DataSource dataSource)
DataSource to be used. |
Modifier and Type | Method and Description |
---|---|
TaskExecutionDao |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setTablePrefix(String tablePrefix)
Indicates a prefix for all of the task repository's tables if the jdbc option is
used.
|
public static final String DEFAULT_TABLE_PREFIX
public TaskExecutionDaoFactoryBean()
public TaskExecutionDaoFactoryBean(DataSource dataSource)
DataSource
to be used.dataSource
- DataSource
to be used.public TaskExecutionDao getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<TaskExecutionDao>
Exception
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<TaskExecutionDao>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<TaskExecutionDao>
public void setTablePrefix(String tablePrefix)
tablePrefix
- the string prefix for the task table namesCopyright © 2017 Pivotal Software, Inc.. All rights reserved.