@Configuration @EnableTransactionManagement public class SimpleTaskConfiguration 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 |
---|
SimpleTaskConfiguration() |
Modifier and Type | Method and Description |
---|---|
protected void |
initialize()
Determines the
TaskConfigurer to use. |
TaskExplorer |
taskExplorer() |
TaskLifecycleListener |
taskLifecycleListener() |
TaskListenerExecutorFactoryBean |
taskListenerExecutor() |
TaskNameResolver |
taskNameResolver() |
TaskRepository |
taskRepository() |
TaskRepositoryInitializer |
taskRepositoryInitializer() |
org.springframework.transaction.PlatformTransactionManager |
transactionManager() |
@Bean public TaskRepository taskRepository()
@Bean public TaskLifecycleListener taskLifecycleListener()
@Bean public TaskListenerExecutorFactoryBean taskListenerExecutor() throws Exception
Exception
@Bean public org.springframework.transaction.PlatformTransactionManager transactionManager()
@Bean public TaskExplorer taskExplorer()
@Bean public TaskNameResolver taskNameResolver()
@Bean public TaskRepositoryInitializer taskRepositoryInitializer()
@PostConstruct protected void initialize() throws Exception
TaskConfigurer
to use.Exception
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.