Class CompositeTaskDecorator
java.lang.Object
org.springframework.core.task.support.CompositeTaskDecorator
- All Implemented Interfaces:
TaskDecorator
Composite
TaskDecorator that delegates to other task decorators.- Since:
- 6.1
- Author:
- Tadaya Tsuyukubo
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeTaskDecorator(Collection<? extends TaskDecorator> taskDecorators) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionDecorate the givenRunnable, returning a potentially wrappedRunnablefor actual execution, internally delegating to the originalRunnable.run()implementation.
-
Constructor Details
-
CompositeTaskDecorator
Create a new instance.- Parameters:
taskDecorators- the taskDecorators to delegate to
-
-
Method Details
-
decorate
Description copied from interface:TaskDecoratorDecorate the givenRunnable, returning a potentially wrappedRunnablefor actual execution, internally delegating to the originalRunnable.run()implementation.- Specified by:
decoratein interfaceTaskDecorator- Parameters:
runnable- the originalRunnable- Returns:
- the decorated
Runnable
-