Package javax.cache.annotation
Interface CacheResolver
-
public interface CacheResolver
Determines theCache
to use for an intercepted method invocation.Implementations MUST be thread-safe.
- Since:
- 1.0
- See Also:
CacheResolverFactory
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <K,V>
Cache<K,V>resolveCache(CacheInvocationContext<? extends java.lang.annotation.Annotation> cacheInvocationContext)
Resolve theCache
to use for theCacheInvocationContext
.
-
-
-
Method Detail
-
resolveCache
<K,V> Cache<K,V> resolveCache(CacheInvocationContext<? extends java.lang.annotation.Annotation> cacheInvocationContext)
Resolve theCache
to use for theCacheInvocationContext
.- Type Parameters:
K
- the type of keyV
- the type of value- Parameters:
cacheInvocationContext
- The context data for the intercepted method invocation- Returns:
- The
Cache
instance to be used by the interceptor
-
-