public class DefaultTaskConfigurer extends Object implements TaskConfigurer
TaskConfigurer
implementation is present, then this configuration will be used.
The following defaults will be used:
SimpleTaskRepository
is the default TaskRepository
returned.
If a data source is present then a data will be stored in the database JdbcTaskExecutionDao
else it will
be stored in a map MapTaskExecutionDao
.
Constructor and Description |
---|
DefaultTaskConfigurer(DataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
TaskExplorer |
getTaskExplorer()
Create a
TaskExplorer for the task. |
TaskRepository |
getTaskRepository()
Create a
TaskRepository for the Task. |
org.springframework.transaction.PlatformTransactionManager |
getTransactionManager()
Create a
PlatformTransactionManager for use with the
TaskRepository . |
public DefaultTaskConfigurer(DataSource dataSource)
dataSource
- references the DataSource
to be used as the Task
repository. If none is provided, a Map will be used (not recommended for
production use.public TaskRepository getTaskRepository()
TaskConfigurer
TaskRepository
for the Task.getTaskRepository
in interface TaskConfigurer
public TaskExplorer getTaskExplorer()
TaskConfigurer
TaskExplorer
for the task.getTaskExplorer
in interface TaskConfigurer
TaskExplorer
public org.springframework.transaction.PlatformTransactionManager getTransactionManager()
TaskConfigurer
PlatformTransactionManager
for use with the
TaskRepository
.getTransactionManager
in interface TaskConfigurer
PlatformTransactionManager
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.