javax.cache.interceptor
Interface CacheResolver


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

Method Summary
<K,V> Cache<K,V>
resolveCache(String cacheName, Method method)
           
 

Method Detail

resolveCache

<K,V> Cache<K,V> resolveCache(String cacheName,
                              Method method)
Parameters:
cacheName - The name of the cache specified in the CacheResult, CacheRemoveEntry, or CacheRemoveAll annotation
method - The annotated method
Returns:
The Cache instance to be used by the intercepter


Copyright © 2011. All Rights Reserved.