org.infinispan.cdi.interceptor
Class DefaultCacheResolver

java.lang.Object
  extended by org.infinispan.cdi.interceptor.DefaultCacheResolver
All Implemented Interfaces:
CacheResolver

public class DefaultCacheResolver
extends Object
implements CacheResolver

This is the default cache resolver implementation.

Author:
Kevin Pollet (C) 2011 SERLI

Constructor Summary
DefaultCacheResolver(javax.enterprise.inject.Instance<EmbeddedCacheManager> cacheManagers)
           
 
Method Summary
<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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCacheResolver

@Inject
public DefaultCacheResolver(@Any
                                   javax.enterprise.inject.Instance<EmbeddedCacheManager> cacheManagers)
Method Detail

resolveCache

public <K,V> Cache<K,V> resolveCache(String cacheName,
                                     Method method)
Description copied from interface: CacheResolver
Resolves a cache in function of it's name and the annotated method (see CacheResult, CacheRemoveEntry and CacheRemoveAll).

Specified by:
resolveCache in interface CacheResolver
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.