org.infinispan.cdi.interceptor
Interface CacheResolver
- All Known Implementing Classes:
- DefaultCacheResolver
public interface CacheResolver
This is the cache resolver contract used by interceptors to resolve a cache in function of it's name and the
annotated method.
- Author:
- Kevin Pollet (C) 2011 SERLI
Method Summary |
|
resolveCache(String cacheName,
Method method)
Resolves a cache in function of it's name and the annotated method (see CacheResult, CacheRemoveEntry and CacheRemoveAll). |
resolveCache
<K,V> Cache<K,V> resolveCache(String cacheName,
Method method)
- Resolves a cache in function of it's name and the annotated method (see CacheResult, CacheRemoveEntry and CacheRemoveAll).
- Type Parameters:
K
- the cache key type.V
- the cache value type.- Parameters:
cacheName
- the cache name to resolve.method
- the method annotated with a cache annotation.
- Returns:
- the resolved cache.
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.