javax.cache.interceptor
Interface CacheResolver
- All Known Implementing Classes:
- DefaultCacheResolver
public interface CacheResolver
Determines the Cache to use for a specified cache name and annotated method. Implementations MUST be thread-safe
- Since:
- 1.7
- Author:
- Eric Dalquist
resolveCacheManger
<K,V> Cache<K,V> resolveCacheManger(String cacheName,
Method method)
- Parameters:
cacheName - The name of the cache specified in the CacheResult, CacheRemoveEntry, or CacheRemoveAll annotationmethod - The annotated method
- Returns:
- The
Cache instance to be used by the intercepter
true