Package org.springframework.cloud.task.configuration

# 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 Type
  Method
  Description
  `DataSource`
  `getTaskDataSource()`
  Retrieves the `DataSource` that will be used for task operations.
  `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`.

- ## Method Details

  - ### getTaskRepository

    TaskRepository getTaskRepository()
    Create a `TaskRepository` for the Task.
    Returns:
      A TaskRepository

  - ### getTransactionManager

    org.springframework.transaction.PlatformTransactionManager getTransactionManager()
    Create a `PlatformTransactionManager` for use with the `TaskRepository`.
    Returns:
      A `PlatformTransactionManager`

  - ### getTaskExplorer

    TaskExplorer getTaskExplorer()
    Create a `TaskExplorer` for the task.
    Returns:
      a `TaskExplorer`

  - ### getTaskDataSource

    DataSource getTaskDataSource()
    Retrieves the `DataSource` 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.