org.infinispan.spring.provider
Class SpringEmbeddedCacheManager

java.lang.Object
  extended by org.infinispan.spring.provider.SpringEmbeddedCacheManager
All Implemented Interfaces:
org.springframework.cache.CacheManager

public class SpringEmbeddedCacheManager
extends Object
implements org.springframework.cache.CacheManager

A CacheManager implementation that is backed by an Infinispan EmbeddedCacheManager instance.

Note that this CacheManager does support adding new Caches at runtime, i.e. Caches added programmatically to the backing EmbeddedCacheManager after this CacheManager has been constructed will be seen by this CacheManager.

Author:
Olaf Bergner

Constructor Summary
SpringEmbeddedCacheManager(EmbeddedCacheManager nativeCacheManager)
           
 
Method Summary
<K,V> SpringCache<K,V>
getCache(String name)
           
 Collection<String> getCacheNames()
           
 EmbeddedCacheManager getNativeCacheManager()
          Return the org.infinispan.manager.EmbeddedCacheManager that backs this CacheManager.
 void stop()
          Stop the EmbeddedCacheManager this CacheManager delegates to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringEmbeddedCacheManager

public SpringEmbeddedCacheManager(EmbeddedCacheManager nativeCacheManager)
Parameters:
nativeCacheManager -
Method Detail

getCache

public <K,V> SpringCache<K,V> getCache(String name)
Specified by:
getCache in interface org.springframework.cache.CacheManager

getCacheNames

public Collection<String> getCacheNames()
Specified by:
getCacheNames in interface org.springframework.cache.CacheManager

getNativeCacheManager

public EmbeddedCacheManager getNativeCacheManager()
Return the org.infinispan.manager.EmbeddedCacheManager that backs this CacheManager.

Returns:
The org.infinispan.manager.EmbeddedCacheManager that backs this CacheManager

stop

public void stop()
Stop the EmbeddedCacheManager this CacheManager delegates to.


-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.