Package org.infinispan.jcache.annotation
Class InjectedCacheResolver
- java.lang.Object
-
- org.infinispan.jcache.annotation.InjectedCacheResolver
-
- All Implemented Interfaces:
javax.cache.annotation.CacheResolver
@ApplicationScoped public class InjectedCacheResolver extends Object implements javax.cache.annotation.CacheResolver
Injected cache resolver for situations where caches and/or cache managers are injected into the CDI beans. In these situations, bridging is required in order to bridge between the Infinispan based caches and the JCache cache instances which is what it's expected by the specification cache resolver.- Since:
- 5.3
- Author:
- Galder ZamarreƱo
-
-
Constructor Summary
Constructors Constructor Description InjectedCacheResolver()
InjectedCacheResolver(org.infinispan.cdi.embedded.InfinispanExtensionEmbedded extension, javax.enterprise.inject.spi.BeanManager beanManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <K,V>
javax.cache.Cache<K,V>resolveCache(javax.cache.annotation.CacheInvocationContext<? extends Annotation> cacheInvocationContext)
-
-
-
Method Detail
-
resolveCache
public <K,V> javax.cache.Cache<K,V> resolveCache(javax.cache.annotation.CacheInvocationContext<? extends Annotation> cacheInvocationContext)
- Specified by:
resolveCache
in interfacejavax.cache.annotation.CacheResolver
-
-