public abstract class AnnotationJCacheOperationSource extends AbstractFallbackJCacheOperationSource
CacheResult
、CachePut
、CacheRemove
、CacheRemoveAll
アノテーションを読み取る JCacheOperationSource
インターフェースの実装。logger
コンストラクターと説明 |
---|
AnnotationJCacheOperationSource() |
修飾子と型 | メソッドと説明 |
---|---|
protected org.springframework.cache.jcache.interceptor.CachePutOperation | createCachePutOperation(MethodSE method, javax.cache.annotation.CacheDefaults defaults, javax.cache.annotation.CachePut ann) |
protected org.springframework.cache.jcache.interceptor.CacheRemoveAllOperation | createCacheRemoveAllOperation(MethodSE method, javax.cache.annotation.CacheDefaults defaults, javax.cache.annotation.CacheRemoveAll ann) |
protected org.springframework.cache.jcache.interceptor.CacheRemoveOperation | createCacheRemoveOperation(MethodSE method, javax.cache.annotation.CacheDefaults defaults, javax.cache.annotation.CacheRemove ann) |
protected org.springframework.cache.jcache.interceptor.CacheResultOperation | createCacheResultOperation(MethodSE method, javax.cache.annotation.CacheDefaults defaults, javax.cache.annotation.CacheResult ann) |
protected StringSE | determineCacheName(MethodSE method, javax.cache.annotation.CacheDefaults defaults, StringSE candidate) |
protected javax.cache.annotation.CacheResolverFactory | determineCacheResolverFactory(javax.cache.annotation.CacheDefaults defaults, ClassSE<? extends javax.cache.annotation.CacheResolverFactory> candidate) |
protected KeyGenerator | determineKeyGenerator(javax.cache.annotation.CacheDefaults defaults, ClassSE<? extends javax.cache.annotation.CacheKeyGenerator> candidate) |
protected JCacheOperation<?> | findCacheOperation(MethodSE method, ClassSE<?> targetType) サブクラスは、これを実装して、指定されたメソッドのキャッシュ操作を返す必要があります(存在する場合)。 |
protected StringSE | generateDefaultCacheName(MethodSE method) 指定された Method SE のデフォルトのキャッシュ名を生成します。 |
protected abstract <T> T | getBean(ClassSE<T> type) 指定されたキャッシュ戦略 type のインスタンスを検索または作成します。 |
protected javax.cache.annotation.CacheDefaults | getCacheDefaults(MethodSE method, ClassSE<?> targetType) |
protected CacheResolver | getCacheResolver(javax.cache.annotation.CacheResolverFactory factory, javax.cache.annotation.CacheMethodDetails<?> details) |
protected abstract CacheResolver | getDefaultCacheResolver() 何も設定されていない場合、デフォルトの CacheResolver を返します。 |
protected abstract CacheResolver | getDefaultExceptionCacheResolver() 何も設定されていない場合、デフォルトの例外 CacheResolver を返します。 |
protected abstract KeyGenerator | getDefaultKeyGenerator() 何も設定されていない場合、デフォルトの KeyGenerator を返します。 |
protected CacheResolver | getExceptionCacheResolver(javax.cache.annotation.CacheResolverFactory factory, javax.cache.annotation.CacheMethodDetails<javax.cache.annotation.CacheResult> details) |
allowPublicMethodsOnly, getCacheOperation
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
protected JCacheOperation<?> findCacheOperation(MethodSE method, @Nullable ClassSE<?> targetType)
AbstractFallbackJCacheOperationSource
AbstractFallbackJCacheOperationSource
の findCacheOperation
method
- 操作を取得するメソッド targetType
- ターゲットクラス null
)@Nullable protected javax.cache.annotation.CacheDefaults getCacheDefaults(MethodSE method, @Nullable ClassSE<?> targetType)
protected org.springframework.cache.jcache.interceptor.CacheResultOperation createCacheResultOperation(MethodSE method, @Nullable javax.cache.annotation.CacheDefaults defaults, javax.cache.annotation.CacheResult ann)
protected org.springframework.cache.jcache.interceptor.CachePutOperation createCachePutOperation(MethodSE method, @Nullable javax.cache.annotation.CacheDefaults defaults, javax.cache.annotation.CachePut ann)
protected org.springframework.cache.jcache.interceptor.CacheRemoveOperation createCacheRemoveOperation(MethodSE method, @Nullable javax.cache.annotation.CacheDefaults defaults, javax.cache.annotation.CacheRemove ann)
protected org.springframework.cache.jcache.interceptor.CacheRemoveAllOperation createCacheRemoveAllOperation(MethodSE method, @Nullable javax.cache.annotation.CacheDefaults defaults, javax.cache.annotation.CacheRemoveAll ann)
protected CacheResolver getCacheResolver(@Nullable javax.cache.annotation.CacheResolverFactory factory, javax.cache.annotation.CacheMethodDetails<?> details)
protected CacheResolver getExceptionCacheResolver(@Nullable javax.cache.annotation.CacheResolverFactory factory, javax.cache.annotation.CacheMethodDetails<javax.cache.annotation.CacheResult> details)
@Nullable protected javax.cache.annotation.CacheResolverFactory determineCacheResolverFactory(@Nullable javax.cache.annotation.CacheDefaults defaults, ClassSE<? extends javax.cache.annotation.CacheResolverFactory> candidate)
protected KeyGenerator determineKeyGenerator(@Nullable javax.cache.annotation.CacheDefaults defaults, ClassSE<? extends javax.cache.annotation.CacheKeyGenerator> candidate)
protected StringSE determineCacheName(MethodSE method, @Nullable javax.cache.annotation.CacheDefaults defaults, StringSE candidate)
protected StringSE generateDefaultCacheName(MethodSE method)
Method
SE のデフォルトのキャッシュ名を生成します。method
- アノテーション付きメソッド protected abstract <T> T getBean(ClassSE<T> type)
type
のインスタンスを検索または作成します。type
- 管理する Bean の型 protected abstract CacheResolver getDefaultCacheResolver()
CacheResolver
を返します。protected abstract CacheResolver getDefaultExceptionCacheResolver()
CacheResolver
を返します。protected abstract KeyGenerator getDefaultKeyGenerator()
KeyGenerator
を返します。