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
ConstructorsConstructorDescriptionInjectedCacheResolver(org.infinispan.cdi.embedded.InfinispanExtensionEmbedded extension, javax.enterprise.inject.spi.BeanManager beanManager) -
Method Summary
Modifier and TypeMethodDescription<K,V> javax.cache.Cache<K, V> resolveCache(javax.cache.annotation.CacheInvocationContext<? extends Annotation> cacheInvocationContext)
-
Constructor Details
-
InjectedCacheResolver
public InjectedCacheResolver() -
InjectedCacheResolver
@Inject public InjectedCacheResolver(org.infinispan.cdi.embedded.InfinispanExtensionEmbedded extension, javax.enterprise.inject.spi.BeanManager beanManager)
-
-
Method Details
-
resolveCache
public <K,V> javax.cache.Cache<K,V> resolveCache(javax.cache.annotation.CacheInvocationContext<? extends Annotation> cacheInvocationContext) - Specified by:
resolveCachein interfacejavax.cache.annotation.CacheResolver
-