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 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, setCacheManagerpublic SimpleCacheResolver()
public SimpleCacheResolver(CacheManager cacheManager)
protected java.util.Collection<java.lang.String> getCacheNames(CacheOperationInvocationContext<?> context)
AbstractCacheResolverIt is acceptable to return null to indicate that no cache could
be resolved for this invocation.
getCacheNames in class AbstractCacheResolvercontext - the context of the particular invocationnull if no cache should be resolved