クラス CacheInterceptor
java.lang.ObjectSE
org.springframework.cache.interceptor.AbstractCacheInvoker
org.springframework.cache.interceptor.CacheAspectSupport
org.springframework.cache.interceptor.CacheInterceptor
- 実装されたすべてのインターフェース:
SerializableSE
、Advice
、Interceptor
、MethodInterceptor
、Aware
、BeanFactoryAware
、InitializingBean
、SmartInitializingSingleton
public class CacheInterceptor
extends CacheAspectSupport
implements MethodInterceptor, SerializableSE
共通の Spring キャッシングインフラストラクチャ(
Cache
)を使用した宣言的なキャッシュ管理のための AOP Alliance MethodInterceptor。Spring の基盤となるキャッシング API との統合を含む CacheAspectSupport
クラスから派生します。CacheInterceptor は、関連するスーパークラスメソッドを正しい順序で呼び出すだけです。
CacheInterceptors はスレッドセーフです。
- 導入:
- 3.1
- 作成者:
- Costin Leau, Juergen Hoeller, Sebastien Deleuze
- 関連事項:
ネストされたクラスのサマリー
クラス org.springframework.cache.interceptor.CacheAspectSupport から継承されたネストクラス / インターフェース
CacheAspectSupport.CacheOperationContext, CacheAspectSupport.CacheOperationMetadata
フィールドサマリー
クラス org.springframework.cache.interceptor.CacheAspectSupport から継承されたフィールド
IGNORE_REACTIVESTREAMS_PROPERTY_NAME, logger
クラス org.springframework.cache.interceptor.AbstractCacheInvoker から継承されたフィールド
errorHandler
コンストラクターのサマリー
方法の概要
クラス org.springframework.cache.interceptor.CacheAspectSupport から継承されたメソッド
afterPropertiesSet, afterSingletonsInstantiated, clearMetadataCache, configure, execute, getBean, getCacheOperationMetadata, getCacheOperationSource, getCacheResolver, getCaches, getKeyGenerator, getOperationContext, invokeOperation, methodIdentification, setBeanFactory, setCacheManager, setCacheOperationSource, setCacheOperationSources, setCacheResolver, setKeyGenerator
クラス org.springframework.cache.interceptor.AbstractCacheInvoker から継承されたメソッド
doClear, doEvict, doGet, doGet, doPut, doRetrieve, doRetrieve, getErrorHandler, setErrorHandler
コンストラクターの詳細
CacheInterceptor
public CacheInterceptor()
メソッドの詳細
invoke
インターフェースからコピーされた説明:MethodInterceptor
このメソッドを実装して、呼び出しの前後に追加の処理を実行します。正しい実装としては、必ずJoinpoint.proceed()
を呼び出すようにします。- 次で指定:
- インターフェース
MethodInterceptor
のinvoke
- パラメーター:
invocation
- メソッド呼び出しジョインポイント- 戻り値:
Joinpoint.proceed()
の呼び出しの結果。インターセプターによってインターセプトされる可能性があります- 例外:
ThrowableSE
- インターセプターまたはターゲットオブジェクトが例外をスローする場合