Package org.infinispan.spring.provider
Class SpringEmbeddedCacheManager
- java.lang.Object
-
- org.infinispan.spring.provider.SpringEmbeddedCacheManager
-
- All Implemented Interfaces:
org.springframework.cache.CacheManager
public class SpringEmbeddedCacheManager extends Object implements org.springframework.cache.CacheManager
A
implementation that is backed by anCacheManagerinstance.Infinispan EmbeddedCacheManagerNote that this
CacheManagerdoes support adding newat runtime, i.e.CachesCachesadded programmatically to the backingEmbeddedCacheManagerafter thisCacheManagerhas been constructed will be seen by thisCacheManager.- Author:
- Olaf Bergner, Marius Bogoevici
-
-
Constructor Summary
Constructors Constructor Description SpringEmbeddedCacheManager(EmbeddedCacheManager nativeCacheManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpringCachegetCache(String name)Collection<String>getCacheNames()EmbeddedCacheManagergetNativeCacheManager()Return thethat backs thisorg.infinispan.manager.EmbeddedCacheManagerCacheManager.voidstop()Stop thethisEmbeddedCacheManagerCacheManagerdelegates to.
-
-
-
Constructor Detail
-
SpringEmbeddedCacheManager
public SpringEmbeddedCacheManager(EmbeddedCacheManager nativeCacheManager)
- Parameters:
nativeCacheManager- Underlying cache manager
-
-
Method Detail
-
getCache
public SpringCache getCache(String name)
- Specified by:
getCachein interfaceorg.springframework.cache.CacheManager
-
getCacheNames
public Collection<String> getCacheNames()
- Specified by:
getCacheNamesin interfaceorg.springframework.cache.CacheManager
-
getNativeCacheManager
public EmbeddedCacheManager getNativeCacheManager()
Return thethat backs thisorg.infinispan.manager.EmbeddedCacheManagerCacheManager.- Returns:
- The
that backs thisorg.infinispan.manager.EmbeddedCacheManagerCacheManager
-
stop
public void stop()
Stop thethisEmbeddedCacheManagerCacheManagerdelegates to.
-
-