Class SimpleExceptionCacheResolver
java.lang.Object
org.springframework.cache.interceptor.AbstractCacheResolver
org.springframework.cache.jcache.interceptor.SimpleExceptionCacheResolver
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
,org.springframework.cache.interceptor.CacheResolver
public class SimpleExceptionCacheResolver
extends org.springframework.cache.interceptor.AbstractCacheResolver
A simple
CacheResolver
that resolves the exception cache
based on a configurable CacheManager
and the name of the
cache: CacheResultOperation.getExceptionCacheName()
.- Since:
- 4.1
- Author:
- Stephane Nicoll
- See Also:
-
CacheResultOperation.getExceptionCacheName()
-
Constructor Summary
ConstructorDescriptionSimpleExceptionCacheResolver
(org.springframework.cache.CacheManager cacheManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<String>
getCacheNames
(org.springframework.cache.interceptor.CacheOperationInvocationContext<?> context) Methods inherited from class org.springframework.cache.interceptor.AbstractCacheResolver
afterPropertiesSet, getCacheManager, resolveCaches, setCacheManager
-
Constructor Details
-
SimpleExceptionCacheResolver
public SimpleExceptionCacheResolver(org.springframework.cache.CacheManager cacheManager)
-
-
Method Details
-
getCacheNames
protected Collection<String> getCacheNames(org.springframework.cache.interceptor.CacheOperationInvocationContext<?> context) - Specified by:
getCacheNames
in classorg.springframework.cache.interceptor.AbstractCacheResolver
-