Class TaskExecutionDaoFactoryBean
java.lang.Object
org.springframework.cloud.task.repository.support.TaskExecutionDaoFactoryBean
- All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<TaskExecutionDao>
public class TaskExecutionDaoFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<TaskExecutionDao>
A
FactoryBean
implementation that creates the appropriate
TaskExecutionDao
based on the provided information.- Author:
- Michael Minella, Glenn Renfro
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
ConstructorDescriptionDefault constructor will result in a Map based TaskExecutionDao.TaskExecutionDaoFactoryBean
(DataSource dataSource) DataSource
to be used.TaskExecutionDaoFactoryBean
(DataSource dataSource, String tablePrefix) DataSource
to be used. -
Method Summary
-
Constructor Details
-
TaskExecutionDaoFactoryBean
public TaskExecutionDaoFactoryBean()Default constructor will result in a Map based TaskExecutionDao. This is only intended for testing purposes. -
TaskExecutionDaoFactoryBean
DataSource
to be used.- Parameters:
dataSource
-DataSource
to be used.tablePrefix
- the table prefix to use for this dao.
-
TaskExecutionDaoFactoryBean
DataSource
to be used.- Parameters:
dataSource
-DataSource
to be used.
-
-
Method Details
-
getObject
- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<TaskExecutionDao>
- Throws:
Exception
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<TaskExecutionDao>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<TaskExecutionDao>
-