Class TaskLifecycleConfiguration
java.lang.Object
org.springframework.cloud.task.configuration.TaskLifecycleConfiguration
Configuration for a
TaskLifecycleListener
.- Since:
- 2.1
- Author:
- Glenn Renfro, Michael Minella
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTaskLifecycleConfiguration
(TaskProperties taskProperties, org.springframework.context.ConfigurableApplicationContext context, TaskRepository taskRepository, TaskExplorer taskExplorer, TaskNameResolver taskNameResolver, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.ApplicationArguments> applicationArguments) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Initializes theTaskLifecycleListener
for the task app.
-
Field Details
-
logger
protected static final org.apache.commons.logging.Log logger
-
-
Constructor Details
-
TaskLifecycleConfiguration
@Autowired public TaskLifecycleConfiguration(TaskProperties taskProperties, org.springframework.context.ConfigurableApplicationContext context, TaskRepository taskRepository, TaskExplorer taskExplorer, TaskNameResolver taskNameResolver, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.ApplicationArguments> applicationArguments)
-
-
Method Details
-
taskLifecycleListener
-
initialize
Initializes theTaskLifecycleListener
for the task app.
-