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 anCacheManager
instance.Infinispan EmbeddedCacheManager
Note that this
CacheManager
does support adding new
at runtime, i.e.Caches
Caches
added programmatically to the backingEmbeddedCacheManager
after thisCacheManager
has 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 SpringCache
getCache(String name)
Collection<String>
getCacheNames()
EmbeddedCacheManager
getNativeCacheManager()
Return the
that backs thisorg.infinispan.manager.EmbeddedCacheManager
CacheManager
.void
stop()
Stop the
thisEmbeddedCacheManager
CacheManager
delegates to.
-
-
-
Constructor Detail
-
SpringEmbeddedCacheManager
public SpringEmbeddedCacheManager(EmbeddedCacheManager nativeCacheManager)
- Parameters:
nativeCacheManager
- Underlying cache manager
-
-
Method Detail
-
getCache
public SpringCache getCache(String name)
- Specified by:
getCache
in interfaceorg.springframework.cache.CacheManager
-
getCacheNames
public Collection<String> getCacheNames()
- Specified by:
getCacheNames
in interfaceorg.springframework.cache.CacheManager
-
getNativeCacheManager
public EmbeddedCacheManager getNativeCacheManager()
Return the
that backs thisorg.infinispan.manager.EmbeddedCacheManager
CacheManager
.- Returns:
- The
that backs thisorg.infinispan.manager.EmbeddedCacheManager
CacheManager
-
stop
public void stop()
Stop the
thisEmbeddedCacheManager
CacheManager
delegates to.
-
-