org.springframework.cache.annotation

## 类 CachingConfigurationSelector

- java.lang.Object
- - org.springframework.context.annotation.AdviceModeImportSelector<EnableCaching>
  - - org.springframework.cache.annotation.CachingConfigurationSelector

- 所有已实现的接口:
    ImportSelector

      public class CachingConfigurationSelector
      extends AdviceModeImportSelector<EnableCaching>

  Selects which implementation of `AbstractCachingConfiguration` should be used based on the value of `EnableCaching.mode()` on the importing `@Configuration` class.

  Detects the presence of JSR-107 and enables JCache support accordingly.

  从以下版本开始:
    3.1
  作者:
    Chris Beams, Stephane Nicoll
  另请参阅:
    `EnableCaching`, `ProxyCachingConfiguration`

- - ### 字段概要

    - ### 从类继承的字段 org.springframework.context.annotation.AdviceModeImportSelector

      `DEFAULT_ADVICE_MODE_ATTRIBUTE_NAME`

  - ### 构造器概要

    构造器
    构造器和说明
    `CachingConfigurationSelector()`

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `String[]` | `selectImports(AdviceMode adviceMode)` Returns `ProxyCachingConfiguration` or `AspectJCachingConfiguration` for `PROXY` and `ASPECTJ` values of `EnableCaching.mode()`, respectively.

    - ### 从类继承的方法 org.springframework.context.annotation.AdviceModeImportSelector

      `getAdviceModeAttributeName, selectImports`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### CachingConfigurationSelector

          public CachingConfigurationSelector()

  - ### 方法详细资料

    - #### selectImports

          public String[] selectImports(AdviceMode adviceMode)

      Returns `ProxyCachingConfiguration` or `AspectJCachingConfiguration` for `PROXY` and `ASPECTJ` values of `EnableCaching.mode()`, respectively. Potentially includes corresponding JCache configuration as well.
      指定者:
        `selectImports` 在类中 `AdviceModeImportSelector<EnableCaching>`
      参数:
        `adviceMode` - the value of the advice mode attribute for the annotation specified via generics.
      返回:
        array containing classes to import (empty array if none; `null` if the given `AdviceMode` is unknown)