Class SimpleTaskAutoConfiguration
java.lang.Object
org.springframework.cloud.task.configuration.SimpleTaskAutoConfiguration
@AutoConfiguration
@EnableTransactionManagement
@EnableConfigurationProperties(TaskProperties.class)
@ConditionalOnProperty(prefix="spring.cloud.task.autoconfiguration",
name="enabled",
havingValue="true",
matchIfMissing=true)
@Import(org.springframework.boot.sql.init.dependency.DatabaseInitializationDependencyConfigurer.class)
public class SimpleTaskAutoConfiguration
extends Object
Base
Configuration
class providing common structure for enabling and using
Spring Task. Customization is available by implementing the TaskConfigurer
interface.- Author:
- Glenn Renfro, Michael Minella, Mahmoud Ben Hassine
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Determines theTaskConfigurer
to use.org.springframework.transaction.PlatformTransactionManager
-
Field Details
-
logger
protected static final org.apache.commons.logging.Log logger
-
-
Constructor Details
-
SimpleTaskAutoConfiguration
public SimpleTaskAutoConfiguration()
-
-
Method Details
-
taskRepository
-
springCloudTaskTransactionManager
@Conditional(org.springframework.cloud.task.configuration.NoTransactionManagerProperty.class) @Bean public org.springframework.transaction.PlatformTransactionManager springCloudTaskTransactionManager() -
taskExplorer
-
taskNameResolver
-
taskRepositoryInitializer
-
initialize
@PostConstruct protected void initialize()Determines theTaskConfigurer
to use.
-