[infinispan-issues] [JBoss JIRA] (ISPN-5120) Expose EmbeddedCacheManager/Cache via JCacheManager/JCache unwrap(...) methods
Galder Zamarreño (JIRA)
issues at jboss.org
Thu Jan 15 10:38:49 EST 2015
[ https://issues.jboss.org/browse/ISPN-5120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Galder Zamarreño updated ISPN-5120:
-----------------------------------
Fix Version/s: 7.1.0.Final
> Expose EmbeddedCacheManager/Cache via JCacheManager/JCache unwrap(...) methods
> ------------------------------------------------------------------------------
>
> Key: ISPN-5120
> URL: https://issues.jboss.org/browse/ISPN-5120
> Project: Infinispan
> Issue Type: Feature Request
> Components: JCache
> Affects Versions: 7.0.3.Final
> Reporter: Paul Ferraro
> Assignee: Galder Zamarreño
> Fix For: 7.1.0.Final
>
>
> The JSR-107 spec includes the CacheManager.unwrap(Class) and Cache.unwrap(Class) methods to allow access to underlying caching implementation. Currently, I can only unwrap the Cache/CacheManager instance to the concrete JCache/JCacheManager implementations. However, these classes do not expose the underlying infinispan Cache/EmbeddedCacheManager.
> Ideally, I should be able to do the following:
> {code}
> javax.cache.Cache<K, V> jcache = Caching.getCache("name", ...);
> org.infinispan.Cache<K, V> icache = jcache.unwrap(org.infinispan.Cache.class);
> {code}
> or
> {code}
> CacheManager jmanager = Caching.getCachingProvider().getCacheManager();
> EmbeddedCacheManager imanager = jmanager.unwrap(EmbeddedCacheManager.class);
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the infinispan-issues
mailing list