public abstract class AbstractCacheResolver extends ObjectSE implements CacheResolver, InitializingBean
CacheResolver
実装。修飾子 | コンストラクターと説明 |
---|---|
protected | AbstractCacheResolver() |
protected | AbstractCacheResolver(CacheManager cacheManager) |
修飾子と型 | メソッドと説明 |
---|---|
void | afterPropertiesSet() 指定されたすべての Bean プロパティを設定した(そして BeanFactoryAware と ApplicationContextAware を満たした)後に BeanFactory によって呼び出されます。 |
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()
protected AbstractCacheResolver(CacheManager cacheManager)
public void setCacheManager(CacheManager cacheManager)
CacheManager
を設定します。public CacheManager getCacheManager()
CacheManager
を返します。public void afterPropertiesSet()
InitializingBean
このメソッドにより、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