Top Description Constructors Methods
org.springframework.cache.jcache.interceptor

public Class SimpleExceptionCacheResolver

extends AbstractCacheResolver
Class Inheritance
Imports
java.util.Collection, .Collections, org.springframework.cache.CacheManager, org.springframework.cache.interceptor.AbstractCacheResolver, .BasicOperation, .CacheOperationInvocationContext, .CacheResolver

A simple CacheResolver that resolves the exception cache based on a configurable CacheManager and the name of the cache: CacheResultOperation#getExceptionCacheName().
Author
Stephane Nicoll
Since
4.1
See Also
CacheResultOperation#getExceptionCacheName()

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected Collection<String>
getCacheNames(CacheOperationInvocationContext<?>
the context of the particular invocation
context
)

Implements abstract org.springframework.cache.interceptor.AbstractCacheResolver.getCacheNames.

Provide the name of the cache(s) to resolve against the current cache manager.

Inherited from org.springframework.cache.interceptor.AbstractCacheResolver:
afterPropertiesSetgetCacheManagerresolveCachessetCacheManager

Constructor Detail

SimpleExceptionCacheResolverback to summary
public SimpleExceptionCacheResolver(CacheManager cacheManager)

Method Detail

getCacheNamesback to summary
protected Collection<String> getCacheNames(CacheOperationInvocationContext<?> context)

Implements abstract org.springframework.cache.interceptor.AbstractCacheResolver.getCacheNames.

Doc from org.springframework.cache.interceptor.AbstractCacheResolver.getCacheNames.

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.

Parameters
context:CacheOperationInvocationContext<?>

the context of the particular invocation

Returns:Collection<String>

the cache name(s) to resolve, or null if no cache should be resolved

Annotations
@Override