Top Description Methods
javax.cache.annotation

public Interface CacheResolver

Imports
javax.cache.Cache, java.lang.annotation.Annotation

Determines the Cache to use for an intercepted method invocation.

Implementations MUST be thread-safe.

Author
Eric Dalquist
Since
1.0
See Also
CacheResolverFactory

Method Summary

Modifier and TypeMethod and Description
public <
the type of key
K
,
the type of value
V
>
Cache<K, V>

Returns:

The Cache instance to be used by the interceptor
resolveCache
(CacheInvocationContext<? extends Annotation>
The context data for the intercepted method invocation
cacheInvocationContext
)

Resolve the Cache to use for the CacheInvocationContext.

Method Detail

resolveCacheback to summary
public <K, V> Cache<K, V> resolveCache(CacheInvocationContext<? extends Annotation> cacheInvocationContext)

Resolve the Cache to use for the CacheInvocationContext.

Parameters
<K>
the type of key
<V>
the type of value
cacheInvocationContext:CacheInvocationContext<? extends Annotation>

The context data for the intercepted method invocation

Returns:Cache<K, V>

The Cache instance to be used by the interceptor