## 接口的使用
org.springframework.core.task.TaskDecorator

- 使用TaskDecorator的程序包
  程序包 | 说明
  --- | ---
  org.springframework.core.task | This package defines Spring's core TaskExecutor abstraction, and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.
  org.springframework.core.task.support | Support classes for Spring's TaskExecutor abstraction.

- - ### org.springframework.core.task中TaskDecorator的使用

    参数类型为TaskDecorator的org.springframework.core.task中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | SimpleAsyncTaskExecutor.`setTaskDecorator(TaskDecorator taskDecorator)` Specify a custom `TaskDecorator` to be applied to any `Runnable` about to be executed.

  - ### org.springframework.core.task.support中TaskDecorator的使用

    参数类型为TaskDecorator的org.springframework.core.task.support中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `protected void` | TaskExecutorAdapter.`doExecute(Executor concurrentExecutor, TaskDecorator taskDecorator, Runnable runnable)` Actually execute the given `Runnable` (which may be a user-supplied task or a wrapper around a user-supplied task) with the given executor.
    `void` | TaskExecutorAdapter.`setTaskDecorator(TaskDecorator taskDecorator)` Specify a custom `TaskDecorator` to be applied to any `Runnable` about to be executed.