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 theDataSourcethat will be used for task operations.Create aTaskExplorerfor the task.Create aTaskRepositoryfor the Task.org.springframework.transaction.PlatformTransactionManagerCreate aPlatformTransactionManagerfor use with theTaskRepository.
-
Method Details
-
getTaskRepository
TaskRepository getTaskRepository()Create aTaskRepositoryfor the Task.- Returns:
- A TaskRepository
-
getTransactionManager
org.springframework.transaction.PlatformTransactionManager getTransactionManager()Create aPlatformTransactionManagerfor use with theTaskRepository.- Returns:
- A
PlatformTransactionManager
-
getTaskExplorer
TaskExplorer getTaskExplorer()Create aTaskExplorerfor the task.- Returns:
- a
TaskExplorer
-
getTaskDataSource
DataSource getTaskDataSource()Retrieves theDataSourcethat will be used for task operations. If a DataSource is not being used for the implemented TaskConfigurer this method will return null.- Returns:
DataSourcethat will be used for task operations.
-