[infinispan-issues] [JBoss JIRA] (ISPN-5120) Expose EmbeddedCacheManager/Cache via JCacheManager/JCache unwrap(...) methods

Paul Ferraro (JIRA) issues at jboss.org
Tue Jan 6 10:07:30 EST 2015


     [ https://issues.jboss.org/browse/ISPN-5120?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Ferraro reassigned ISPN-5120:
----------------------------------

    Assignee: Galder Zamarreño


> 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
>
> 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