public class SimpleCacheResolver extends BaseCacheResolver
CacheResolver
that resolves the Cache
instance(s)
based on a configurable CacheManager
and the name of the
cache(s) as provided by getCacheNames()
BasicCacheOperation.getCacheNames()
Constructor and Description |
---|
SimpleCacheResolver() |
SimpleCacheResolver(CacheManager cacheManager) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Collection<java.lang.String> |
getCacheNames(CacheOperationInvocationContext<?> context)
Provide the name of the cache(s) to resolve against the current cache manager.
|
afterPropertiesSet, getCacheManager, resolveCaches, setCacheManager
public SimpleCacheResolver()
public SimpleCacheResolver(CacheManager cacheManager)
protected java.util.Collection<java.lang.String> getCacheNames(CacheOperationInvocationContext<?> context)
BaseCacheResolver
It is acceptable to return null
to indicate that no cache could
be resolved for this invocation.
getCacheNames
in class BaseCacheResolver
context
- the context of the particular invocationnull
if no cache should be resolved