@FunctionalInterface public interface CacheResolver
Cache
instance(s) to use for an intercepted method invocation.
Implementations must be thread-safe.
Modifier and Type | Method and Description |
---|---|
Collection<? extends Cache> |
resolveCaches(CacheOperationInvocationContext<?> context)
Return the cache(s) to use for the specified invocation.
|
Collection<? extends Cache> resolveCaches(CacheOperationInvocationContext<?> context)
context
- the context of the particular invocationnull
)IllegalStateException
- if cache resolution failed