@ApplicationScoped public class DefaultCacheResolver extends Object implements CacheResolver
CacheResolver
implementation.Modifier | Constructor and Description |
---|---|
protected |
DefaultCacheResolver() |
|
DefaultCacheResolver(javax.enterprise.inject.Instance<EmbeddedCacheManager> cacheManagers) |
Modifier and Type | Method and Description |
---|---|
<K,V> Cache<K,V> |
resolveCache(javax.cache.annotation.CacheInvocationContext<? extends Annotation> cacheInvocationContext)
Resolve the
Cache to use for this CacheInvocationContext . |
@Inject public DefaultCacheResolver(@Any javax.enterprise.inject.Instance<EmbeddedCacheManager> cacheManagers)
protected DefaultCacheResolver()
public <K,V> Cache<K,V> resolveCache(javax.cache.annotation.CacheInvocationContext<? extends Annotation> cacheInvocationContext)
CacheResolver
Cache
to use for this CacheInvocationContext
.resolveCache
in interface CacheResolver
K
- the cache key type.V
- the cache value type.cacheInvocationContext
- the cache invocation context.Copyright © 2017 JBoss, a division of Red Hat. All Rights Reserved.