クラス AnnotationJCacheOperationSource

java.lang.ObjectSE
org.springframework.cache.jcache.interceptor.AbstractFallbackJCacheOperationSource
org.springframework.cache.jcache.interceptor.AnnotationJCacheOperationSource
実装されたすべてのインターフェース:
JCacheOperationSource
既知の直属サブクラス
DefaultJCacheOperationSource

public abstract class AnnotationJCacheOperationSource extends AbstractFallbackJCacheOperationSource
JSR-107 CacheResultCachePutCacheRemoveCacheRemoveAll アノテーションを読み取る JCacheOperationSource インターフェースの実装。
導入:
4.1
作成者:
Stephane Nicoll
  • コンストラクターの詳細

    • AnnotationJCacheOperationSource

      public AnnotationJCacheOperationSource()
  • メソッドの詳細

    • findCacheOperation

      @Nullable protected JCacheOperation<?> findCacheOperation(MethodSE method, @Nullable ClassSE<?> targetType)
      クラスからコピーされた説明: AbstractFallbackJCacheOperationSource
      サブクラスは、これを実装して、指定されたメソッドのキャッシュ操作を返す必要があります(存在する場合)。
      次で指定:
      クラス AbstractFallbackJCacheOperationSourcefindCacheOperation 
      パラメーター:
      method - 操作を取得するメソッド
      targetType - ターゲットクラス
      戻り値:
      このメソッドに関連付けられたキャッシュ操作 (または、存在しない場合は null )
    • getCacheDefaults

      @Nullable protected javax.cache.annotation.CacheDefaults getCacheDefaults(MethodSE method, @Nullable ClassSE<?> targetType)
    • createCacheResultOperation

      protected org.springframework.cache.jcache.interceptor.CacheResultOperation createCacheResultOperation(MethodSE method, @Nullable javax.cache.annotation.CacheDefaults defaults, javax.cache.annotation.CacheResult ann)
    • createCachePutOperation

      protected org.springframework.cache.jcache.interceptor.CachePutOperation createCachePutOperation(MethodSE method, @Nullable javax.cache.annotation.CacheDefaults defaults, javax.cache.annotation.CachePut ann)
    • createCacheRemoveOperation

      protected org.springframework.cache.jcache.interceptor.CacheRemoveOperation createCacheRemoveOperation(MethodSE method, @Nullable javax.cache.annotation.CacheDefaults defaults, javax.cache.annotation.CacheRemove ann)
    • createCacheRemoveAllOperation

      protected org.springframework.cache.jcache.interceptor.CacheRemoveAllOperation createCacheRemoveAllOperation(MethodSE method, @Nullable javax.cache.annotation.CacheDefaults defaults, javax.cache.annotation.CacheRemoveAll ann)
    • getCacheResolver

      protected CacheResolver getCacheResolver(@Nullable javax.cache.annotation.CacheResolverFactory factory, javax.cache.annotation.CacheMethodDetails<?> details)
    • getExceptionCacheResolver

      protected CacheResolver getExceptionCacheResolver(@Nullable javax.cache.annotation.CacheResolverFactory factory, javax.cache.annotation.CacheMethodDetails<javax.cache.annotation.CacheResult> details)
    • determineCacheResolverFactory

      @Nullable protected javax.cache.annotation.CacheResolverFactory determineCacheResolverFactory(@Nullable javax.cache.annotation.CacheDefaults defaults, ClassSE<? extends javax.cache.annotation.CacheResolverFactory> candidate)
    • determineKeyGenerator

      protected KeyGenerator determineKeyGenerator(@Nullable javax.cache.annotation.CacheDefaults defaults, ClassSE<? extends javax.cache.annotation.CacheKeyGenerator> candidate)
    • determineCacheName

      protected StringSE determineCacheName(MethodSE method, @Nullable javax.cache.annotation.CacheDefaults defaults, StringSE candidate)
    • generateDefaultCacheName

      protected StringSE generateDefaultCacheName(MethodSE method)
      指定された MethodSE のデフォルトのキャッシュ名を生成します。
      パラメーター:
      method - アノテーション付きメソッド
      戻り値:
      JSR-107 によるデフォルトのキャッシュ名
    • getBean

      protected abstract <T> T getBean(ClassSE<T> type)
      指定されたキャッシュ戦略 type のインスタンスを検索または作成します。
      パラメーター:
      type - 管理する Bean の型
      戻り値:
      必要な Bean
    • getDefaultCacheResolver

      protected abstract CacheResolver getDefaultCacheResolver()
      何も設定されていない場合、デフォルトの CacheResolver を返します。
    • getDefaultExceptionCacheResolver

      protected abstract CacheResolver getDefaultExceptionCacheResolver()
      何も設定されていない場合、デフォルトの例外 CacheResolver を返します。
    • getDefaultKeyGenerator

      protected abstract KeyGenerator getDefaultKeyGenerator()
      何も設定されていない場合、デフォルトの KeyGenerator を返します。