类 SimpleExceptionCacheResolver
- java.lang.Object
- org.springframework.cache.interceptor.AbstractCacheResolver
- org.springframework.cache.jcache.interceptor.SimpleExceptionCacheResolver
- 所有已实现的接口:
InitializingBean
,CacheResolver
public class SimpleExceptionCacheResolver extends AbstractCacheResolver
A simpleCacheResolver
that resolves the exception cache based on a configurableCacheManager
and the name of the cache:CacheResultOperation.getExceptionCacheName()
- 从以下版本开始:
- 4.1
- 作者:
- Stephane Nicoll
- 另请参阅:
CacheResultOperation.getExceptionCacheName()
构造器概要
构造器 构造器 说明 SimpleExceptionCacheResolver(CacheManager cacheManager)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected Collection<String>
getCacheNames(CacheOperationInvocationContext<?> context)
Provide the name of the cache(s) to resolve against the current cache manager.从类继承的方法 org.springframework.cache.interceptor.AbstractCacheResolver
afterPropertiesSet, getCacheManager, resolveCaches, setCacheManager
构造器详细资料
SimpleExceptionCacheResolver
public SimpleExceptionCacheResolver(CacheManager cacheManager)
方法详细资料
getCacheNames
protected Collection<String> getCacheNames(CacheOperationInvocationContext<?> context)
从类复制的说明:AbstractCacheResolver
Provide the name of the cache(s) to resolve against the current cache manager.It is acceptable to return
null
to indicate that no cache could be resolved for this invocation.- 指定者:
getCacheNames
在类中AbstractCacheResolver
- 参数:
context
- the context of the particular invocation- 返回:
- the cache name(s) to resolve, or
null
if no cache should be resolved