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

Paul Ferraro (JIRA) issues at jboss.org
Tue Jan 6 09:41:29 EST 2015


Paul Ferraro created ISPN-5120:
----------------------------------

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


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