public class CacheInterceptor extends CacheAspectSupport implements MethodInterceptor, SerializableSE
Cache)を使用した宣言的なキャッシュ管理のための AOP Alliance MethodInterceptor。Spring の基盤となるキャッシング API との統合を含む CacheAspectSupport クラスから派生します。CacheInterceptor は、関連するスーパークラスメソッドを正しい順序で呼び出すだけです。
CacheInterceptors はスレッドセーフです。
CacheAspectSupport.CacheOperationContext, CacheAspectSupport.CacheOperationMetadataloggererrorHandler| コンストラクターと説明 |
|---|
CacheInterceptor() |
| 修飾子と型 | メソッドと説明 |
|---|---|
ObjectSE | invoke(MethodInvocation invocation) このメソッドを実装して、呼び出しの前後に追加の処理を実行します。 |
afterPropertiesSet, afterSingletonsInstantiated, clearMetadataCache, configure, execute, getBean, getCacheOperationMetadata, getCacheOperationSource, getCacheResolver, getCaches, getKeyGenerator, getOperationContext, invokeOperation, methodIdentification, setBeanFactory, setCacheManager, setCacheOperationSource, setCacheOperationSources, setCacheResolver, setKeyGeneratordoClear, doEvict, doGet, doPut, getErrorHandler, setErrorHandlercloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE@Nullable public ObjectSE invoke(MethodInvocation invocation) throws ThrowableSE
MethodInterceptorJoinpoint.proceed() を呼び出すようにします。MethodInterceptor の invoke invocation - メソッド呼び出しジョインポイント Joinpoint.proceed() の呼び出しの結果。インターセプターによってインターセプトされる可能性があります ThrowableSE - インターセプターまたはターゲットオブジェクトが例外をスローする場合