クラス CachingConfigurationSelector
java.lang.ObjectSE
org.springframework.context.annotation.AdviceModeImportSelector<EnableCaching>
org.springframework.cache.annotation.CachingConfigurationSelector
- 実装されたすべてのインターフェース:
ImportSelector
インポートする
@Configuration
クラスの EnableCaching.mode()
の値に基づいて、使用する AbstractCachingConfiguration
の実装を選択します。JSR-107 の存在を検出し、それに応じて JCache サポートを有効にします。
- 導入:
- 3.1
- 作成者:
- Chris Beams, Stephane Nicoll
- 関連事項:
フィールドのサマリー
クラス org.springframework.context.annotation.AdviceModeImportSelector から継承されたフィールド
DEFAULT_ADVICE_MODE_ATTRIBUTE_NAME
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明StringSE[]
selectImports
(AdviceMode adviceMode) EnableCaching.mode()
のPROXY
およびASPECTJ
値に対して、それぞれProxyCachingConfiguration
またはAspectJCachingConfiguration
を返します。クラス org.springframework.context.annotation.AdviceModeImportSelector から継承されたメソッド
getAdviceModeAttributeName, selectImports
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.context.annotation.ImportSelector から継承されたメソッド
getExclusionFilter
コンストラクターの詳細
CachingConfigurationSelector
public CachingConfigurationSelector()
メソッドの詳細
selectImports
EnableCaching.mode()
のPROXY
およびASPECTJ
値に対して、それぞれProxyCachingConfiguration
またはAspectJCachingConfiguration
を返します。対応する JCache 構成も含まれる可能性があります。- 次で指定:
- クラス
AdviceModeImportSelector<EnableCaching>
のselectImports
- パラメーター:
adviceMode
- ジェネリクスを介して指定されたアノテーションのアドバイスモード属性の値。- 戻り値:
- インポートするクラスを含む配列 (存在しない場合は空の配列。指定された
AdviceMode
が不明な場合はnull
)