public class SimpleCacheResolver extends AbstractCacheResolver
CacheResolver
that resolves the Cache
instance(s)
based on a configurable CacheManager
and the name of the
cache(s) as provided by getCacheNames()
BasicOperation.getCacheNames()
Constructor and Description |
---|
SimpleCacheResolver() |
SimpleCacheResolver(CacheManager cacheManager) |
Modifier and Type | Method and Description |
---|---|
protected Collection<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 Collection<String> getCacheNames(CacheOperationInvocationContext<?> context)
AbstractCacheResolver
It is acceptable to return null
to indicate that no cache could
be resolved for this invocation.
getCacheNames
in class AbstractCacheResolver
context
- the context of the particular invocationnull
if no cache should be resolved