クラス AnnotationJCacheOperationSource
java.lang.ObjectSE
org.springframework.cache.jcache.interceptor.AbstractFallbackJCacheOperationSource
org.springframework.cache.jcache.interceptor.AnnotationJCacheOperationSource
- 実装されているすべてのインターフェース:
JCacheOperationSource
- 既知の直属サブクラス
DefaultJCacheOperationSource
JSR-107
CacheResult、CachePut、CacheRemove、CacheRemoveAll アノテーションを読み取る JCacheOperationSource インターフェースの実装。- 導入:
- 4.1
- 作成者:
- Stephane Nicoll
フィールドのサマリー
クラス org.springframework.cache.jcache.interceptor.AbstractFallbackJCacheOperationSource から継承されたフィールド
loggerコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected org.springframework.cache.jcache.interceptor.CachePutOperationcreateCachePutOperation(MethodSE method, javax.cache.annotation.CacheDefaults defaults, javax.cache.annotation.CachePut ann) protected org.springframework.cache.jcache.interceptor.CacheRemoveAllOperationcreateCacheRemoveAllOperation(MethodSE method, javax.cache.annotation.CacheDefaults defaults, javax.cache.annotation.CacheRemoveAll ann) protected org.springframework.cache.jcache.interceptor.CacheRemoveOperationcreateCacheRemoveOperation(MethodSE method, javax.cache.annotation.CacheDefaults defaults, javax.cache.annotation.CacheRemove ann) protected org.springframework.cache.jcache.interceptor.CacheResultOperationcreateCacheResultOperation(MethodSE method, javax.cache.annotation.CacheDefaults defaults, javax.cache.annotation.CacheResult ann) protected StringSEdetermineCacheName(MethodSE method, javax.cache.annotation.CacheDefaults defaults, StringSE candidate) protected javax.cache.annotation.CacheResolverFactorydetermineCacheResolverFactory(javax.cache.annotation.CacheDefaults defaults, ClassSE<? extends javax.cache.annotation.CacheResolverFactory> candidate) protected KeyGeneratordetermineKeyGenerator(javax.cache.annotation.CacheDefaults defaults, ClassSE<? extends javax.cache.annotation.CacheKeyGenerator> candidate) protected JCacheOperation<?>findCacheOperation(MethodSE method, ClassSE<?> targetType) サブクラスは、これを実装して、指定されたメソッドのキャッシュ操作を返す必要があります(存在する場合)。protected StringSEgenerateDefaultCacheName(MethodSE method) 指定されたMethodSE のデフォルトのキャッシュ名を生成します。protected abstract <T> T指定されたキャッシュ戦略typeのインスタンスを検索または作成します。protected javax.cache.annotation.CacheDefaultsgetCacheDefaults(MethodSE method, ClassSE<?> targetType) protected CacheResolvergetCacheResolver(javax.cache.annotation.CacheResolverFactory factory, javax.cache.annotation.CacheMethodDetails<?> details) protected abstract CacheResolver何も設定されていない場合、デフォルトのCacheResolverを返します。protected abstract CacheResolver何も設定されていない場合、デフォルトの例外CacheResolverを返します。protected abstract KeyGenerator何も設定されていない場合、デフォルトのKeyGeneratorを返します。protected CacheResolvergetExceptionCacheResolver(javax.cache.annotation.CacheResolverFactory factory, javax.cache.annotation.CacheMethodDetails<javax.cache.annotation.CacheResult> details) クラス org.springframework.cache.jcache.interceptor.AbstractFallbackJCacheOperationSource から継承されたメソッド
allowPublicMethodsOnly, getCacheOperation
コンストラクターの詳細
AnnotationJCacheOperationSource
public AnnotationJCacheOperationSource()
メソッドの詳細
findCacheOperation
@Nullable protected JCacheOperation<?> findCacheOperation(MethodSE method, @Nullable ClassSE<?> targetType) クラスからコピーされた説明:AbstractFallbackJCacheOperationSourceサブクラスは、これを実装して、指定されたメソッドのキャッシュ操作を返す必要があります(存在する場合)。- 次で指定:
- クラス
AbstractFallbackJCacheOperationSourceのfindCacheOperation - パラメーター:
method- 操作を取得するメソッドtargetType- ターゲットクラス- 戻り値:
- このメソッドに関連付けられたキャッシュ操作 (または、存在しない場合は
null)
getCacheDefaults
createCacheResultOperation
createCachePutOperation
createCacheRemoveOperation
createCacheRemoveAllOperation
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
determineKeyGenerator
protected KeyGenerator determineKeyGenerator(@Nullable javax.cache.annotation.CacheDefaults defaults, ClassSE<? extends javax.cache.annotation.CacheKeyGenerator> candidate) determineCacheName
generateDefaultCacheName
指定されたMethodSE のデフォルトのキャッシュ名を生成します。- パラメーター:
method- アノテーション付きメソッド- 戻り値:
- JSR-107 によるデフォルトのキャッシュ名
getBean
指定されたキャッシュ戦略typeのインスタンスを検索または作成します。- パラメーター:
type- 管理する Bean の型- 戻り値:
- 必要な Bean
getDefaultCacheResolver
何も設定されていない場合、デフォルトのCacheResolverを返します。getDefaultExceptionCacheResolver
何も設定されていない場合、デフォルトの例外CacheResolverを返します。getDefaultKeyGenerator
何も設定されていない場合、デフォルトのKeyGeneratorを返します。