@Configuration(proxyBeanMethods=false) @EnableTransactionManagement @EnableConfigurationProperties(value=TaskProperties.class) @ConditionalOnProperty(prefix="spring.cloud.task.autoconfiguration", name="enabled", havingValue="true", matchIfMissing=true) public class SimpleTaskAutoConfiguration extends Object
Configuration
class providing common structure for enabling and using
Spring Task. Customization is available by implementing the TaskConfigurer
interface.Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
logger |
Constructor and Description |
---|
SimpleTaskAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected void |
initialize()
Determines the
TaskConfigurer to use. |
org.springframework.transaction.PlatformTransactionManager |
springCloudTaskTransactionManager() |
TaskExplorer |
taskExplorer() |
TaskNameResolver |
taskNameResolver() |
TaskRepository |
taskRepository() |
TaskRepositoryInitializer |
taskRepositoryInitializer() |
@Bean public TaskRepository taskRepository()
@Bean public org.springframework.transaction.PlatformTransactionManager springCloudTaskTransactionManager()
@Bean public TaskExplorer taskExplorer()
@Bean public TaskNameResolver taskNameResolver()
@Bean @Lazy(value=false) public TaskRepositoryInitializer taskRepositoryInitializer()
@PostConstruct protected void initialize()
TaskConfigurer
to use.Copyright © 2025 VMware, Inc.. All rights reserved.