クラス 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, doPut, getErrorHandler, setErrorHandler
コンストラクターの詳細
CacheInterceptor
public CacheInterceptor()
メソッドの詳細
invoke
インターフェースからコピーされた説明:MethodInterceptorこのメソッドを実装して、呼び出しの前後に追加の処理を実行します。正しい実装としては、必ずJoinpoint.proceed()を呼び出すようにします。- 次で指定:
- インターフェース
MethodInterceptorのinvoke - パラメーター:
invocation- メソッド呼び出しジョインポイント- 戻り値:
Joinpoint.proceed()の呼び出しの結果。インターセプターによってインターセプトされる可能性があります- 例外:
ThrowableSE- インターセプターまたはターゲットオブジェクトが例外をスローする場合