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