org.infinispan.cdi.interceptor
Class DefaultCacheResolver

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

@ApplicationScoped
public class DefaultCacheResolver
extends Object
implements CacheResolver

Default CacheResolver implementation.

Author:
Kevin Pollet (C) 2011 SERLI

Constructor Summary
protected DefaultCacheResolver()
           
  DefaultCacheResolver(javax.enterprise.inject.Instance<EmbeddedCacheManager> cacheManagers)
           
 
Method Summary
<K,V> Cache<K,V>
resolveCache(javax.cache.annotation.CacheInvocationContext<? extends Annotation> cacheInvocationContext)
          Resolve the Cache to use for this CacheInvocationContext.
 
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)

DefaultCacheResolver

protected DefaultCacheResolver()
Method Detail

resolveCache

public <K,V> Cache<K,V> resolveCache(javax.cache.annotation.CacheInvocationContext<? extends Annotation> cacheInvocationContext)
Description copied from interface: CacheResolver
Resolve the Cache to use for this CacheInvocationContext.

Specified by:
resolveCache in interface CacheResolver
Type Parameters:
K - the cache key type.
V - the cache value type.
Parameters:
cacheInvocationContext - the cache invocation context.
Returns:
the resolved cache.

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.