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 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:
      resolveCache in interface javax.cache.annotation.CacheResolver