Top Description Methods
org.springframework.cache.interceptor

public Interface CacheResolver

Known Direct Implementers
org.springframework.cache.interceptor.AbstractCacheResolver
Annotations
@FunctionalInterface
Imports
java.util.Collection, org.springframework.cache.Cache

Determine the Cache instance(s) to use for an intercepted method invocation.

Implementations must be thread-safe.

Author
Stephane Nicoll
Since
4.1

Method Summary

Modifier and TypeMethod and Description
public Collection<? extends Cache>

Returns:

the cache(s) to use (never null)
resolveCaches
(CacheOperationInvocationContext<?>
the context of the particular invocation
context
)

Return the cache(s) to use for the specified invocation.

Method Detail

resolveCachesback to summary
public Collection<? extends Cache> resolveCaches(CacheOperationInvocationContext<?> context)

Return the cache(s) to use for the specified invocation.

Parameters
context:CacheOperationInvocationContext<?>

the context of the particular invocation

Returns:Collection<? extends Cache>

the cache(s) to use (never null)

Exceptions
IllegalStateException:
if cache resolution failed