public abstract class AbstractCacheResolver extends ObjectSE implements CacheResolver, InitializingBean
CacheResolver
実装。修飾子 | コンストラクターと説明 |
---|---|
protected | AbstractCacheResolver() 新しい AbstractCacheResolver を作成します。 |
protected | AbstractCacheResolver(CacheManager cacheManager) 指定された CacheManager の新しい AbstractCacheResolver を構築します。 |
修飾子と型 | メソッドと説明 |
---|---|
void | afterPropertiesSet() |
CacheManager | getCacheManager() このインスタンスが使用する CacheManager を返します。 |
protected abstract CollectionSE<StringSE> | getCacheNames(CacheOperationInvocationContext<?> context) 現在のキャッシュマネージャーに対して解決するキャッシュの名前を指定します。 |
CollectionSE<? extends Cache> | resolveCaches(CacheOperationInvocationContext<?> context) 指定された呼び出しに使用するキャッシュを返します。 |
void | setCacheManager(CacheManager cacheManager) このインスタンスが使用する CacheManager を設定します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
protected AbstractCacheResolver()
AbstractCacheResolver
を作成します。protected AbstractCacheResolver(CacheManager cacheManager)
CacheManager
の新しい AbstractCacheResolver
を構築します。cacheManager
- 使用する CacheManagerpublic void setCacheManager(CacheManager cacheManager)
CacheManager
を設定します。public CacheManager getCacheManager()
CacheManager
を返します。public void afterPropertiesSet()
InitializingBean
BeanFactoryAware
、ApplicationContextAware
などを満たした後、包含 BeanFactory
によって呼び出されます。このメソッドにより、Bean インスタンスは、すべての Bean プロパティが設定されたときに、その全体的な構成の検証と最終的な初期化を実行できます。
InitializingBean
の afterPropertiesSet
public CollectionSE<? extends Cache> resolveCaches(CacheOperationInvocationContext<?> context)
CacheResolver
CacheResolver
の resolveCaches
context
- 特定の呼び出しのコンテキスト null
)@Nullable protected abstract CollectionSE<StringSE> getCacheNames(CacheOperationInvocationContext<?> context)
この呼び出しでキャッシュを解決できないことを示すために、null
を返すことは許容されます。
context
- 特定の呼び出しのコンテキスト null