类 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 ofAbstractCachingConfiguration
should be used based on the value ofEnableCaching.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)
ReturnsProxyCachingConfiguration
orAspectJCachingConfiguration
forPROXY
andASPECTJ
values ofEnableCaching.mode()
, respectively.从类继承的方法 org.springframework.context.annotation.AdviceModeImportSelector
getAdviceModeAttributeName, selectImports
构造器详细资料
CachingConfigurationSelector
public CachingConfigurationSelector()
方法详细资料
selectImports
public String[] selectImports(AdviceMode adviceMode)
ReturnsProxyCachingConfiguration
orAspectJCachingConfiguration
forPROXY
andASPECTJ
values ofEnableCaching.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 givenAdviceMode
is unknown)