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
ConstructorsConstructorDescriptionDefault constructor will result in a Map based TaskExecutionDao.TaskExecutionDaoFactoryBean(DataSource dataSource) DataSourceto be used.TaskExecutionDaoFactoryBean(DataSource dataSource, String tablePrefix) DataSourceto 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
DataSourceto be used.- Parameters:
dataSource-DataSourceto be used.tablePrefix- the table prefix to use for this dao.
-
TaskExecutionDaoFactoryBean
DataSourceto be used.- Parameters:
dataSource-DataSourceto be used.
-
-
Method Details
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<TaskExecutionDao>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<TaskExecutionDao>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<TaskExecutionDao>
-