Interface TaskConfigurer
- All Known Implementing Classes:
CustomTaskConfigurer
,DefaultTaskConfigurer
public interface TaskConfigurer
Provides a strategy interface for providing configuration customization to the task
system. Users should not directly use getter methods from a
TaskConfigurer
directly unless they are using it to supply the implementations for Spring Beans.- Author:
- Glenn Renfro
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves theDataSource
that will be used for task operations.Create aTaskExplorer
for the task.Create aTaskRepository
for the Task.org.springframework.transaction.PlatformTransactionManager
Create aPlatformTransactionManager
for use with theTaskRepository
.
-
Method Details
-
getTaskRepository
TaskRepository getTaskRepository()Create aTaskRepository
for the Task.- Returns:
- A TaskRepository
-
getTransactionManager
org.springframework.transaction.PlatformTransactionManager getTransactionManager()Create aPlatformTransactionManager
for use with theTaskRepository
.- Returns:
- A
PlatformTransactionManager
-
getTaskExplorer
TaskExplorer getTaskExplorer()Create aTaskExplorer
for the task.- Returns:
- a
TaskExplorer
-
getTaskDataSource
DataSource getTaskDataSource()Retrieves theDataSource
that will be used for task operations. If a DataSource is not being used for the implemented TaskConfigurer this method will return null.- Returns:
DataSource
that will be used for task operations.
-