public class SimpleExceptionCacheResolver extends AbstractCacheResolver
CacheResolver
that resolves the exception cache
based on a configurable CacheManager
and the name of the
cache: CacheResultOperation.getExceptionCacheName()
CacheResultOperation.getExceptionCacheName()
Constructor and Description |
---|
SimpleExceptionCacheResolver(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 SimpleExceptionCacheResolver(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