public class CachingConfigurationSelector extends AdviceModeImportSelector<EnableCaching>
@Configuration
クラスの EnableCaching.mode()
の値に基づいて、使用する AbstractCachingConfiguration
の実装を選択します。JSR-107 の存在を検出し、それに応じて JCache サポートを有効にします。
EnableCaching
, ProxyCachingConfiguration
DEFAULT_ADVICE_MODE_ATTRIBUTE_NAME
コンストラクターと説明 |
---|
CachingConfigurationSelector() |
修飾子と型 | メソッドと説明 |
---|---|
StringSE[] | selectImports(AdviceMode adviceMode) EnableCaching.mode() の PROXY および ASPECTJ 値に対して、それぞれ ProxyCachingConfiguration または AspectJCachingConfiguration を返します。 |
getAdviceModeAttributeName, selectImports
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
getExclusionFilter
public StringSE[] selectImports(AdviceMode adviceMode)
EnableCaching.mode()
の PROXY
および ASPECTJ
値に対して、それぞれ ProxyCachingConfiguration
または AspectJCachingConfiguration
を返します。対応する JCache 構成も含まれる可能性があります。AdviceModeImportSelector<EnableCaching>
の selectImports
adviceMode
- ジェネリクスを介して指定されたアノテーションのアドバイスモード属性の値。AdviceMode
が不明な場合は null
)