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
ConstructorDescriptionCompositeTaskDecorator
(Collection<? extends TaskDecorator> taskDecorators) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionDecorate the givenRunnable
, returning a potentially wrappedRunnable
for 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:TaskDecorator
Decorate the givenRunnable
, returning a potentially wrappedRunnable
for actual execution, internally delegating to the originalRunnable.run()
implementation.- Specified by:
decorate
in interfaceTaskDecorator
- Parameters:
runnable
- the originalRunnable
- Returns:
- the decorated
Runnable
-