Class DefaultTaskConfigurer

java.lang.Object
org.springframework.cloud.task.configuration.DefaultTaskConfigurer
All Implemented Interfaces:
TaskConfigurer
Direct Known Subclasses:
CustomTaskConfigurer

public class DefaultTaskConfigurer extends Object implements TaskConfigurer
Default implementation of the TaskConfigurer interface. If no TaskConfigurer implementation is present, then this configuration will be used. The following defaults will be used:
Author:
Glenn Renfro, Michael Minella
  • Constructor Details

    • DefaultTaskConfigurer

      public DefaultTaskConfigurer()
    • DefaultTaskConfigurer

      public DefaultTaskConfigurer(DataSource dataSource)
      Initializes the DefaultTaskConfigurer and sets the default table prefix to TaskProperties.DEFAULT_TABLE_PREFIX.
      Parameters:
      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).
    • DefaultTaskConfigurer

      public DefaultTaskConfigurer(String tablePrefix)
      Initializes the DefaultTaskConfigurer.
      Parameters:
      tablePrefix - the prefix to apply to the task table names used by task infrastructure.
    • DefaultTaskConfigurer

      public DefaultTaskConfigurer(DataSource dataSource, String tablePrefix, org.springframework.context.ApplicationContext context)
      Initializes the DefaultTaskConfigurer.
      Parameters:
      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).
      tablePrefix - the prefix to apply to the task table names used by task infrastructure.
      context - the context to be used.
  • Method Details