org.springframework.data.gemfire.support
Class GemfireCacheManager

java.lang.Object
  extended by org.springframework.cache.support.AbstractCacheManager
      extended by org.springframework.data.gemfire.support.GemfireCacheManager
All Implemented Interfaces:
InitializingBean, CacheManager

public class GemfireCacheManager
extends AbstractCacheManager

Spring Framework CacheManager backed by a Gemfire Cache. Automatically discovers the created caches (or Regions in Gemfire terminology).


Constructor Summary
GemfireCacheManager()
           
 
Method Summary
 Cache getCache(String name)
           
protected  Collection<Cache> loadCaches()
           
 void setCache(com.gemstone.gemfire.cache.Cache gemfireCache)
          Sets the GemFire Cache backing this CacheManager.
 void setRegions(Set<com.gemstone.gemfire.cache.Region<?,?>> regions)
          Sets a set of regions to use (alternative to injecting the GemFire Cache)
 
Methods inherited from class org.springframework.cache.support.AbstractCacheManager
addCache, afterPropertiesSet, decorateCache, getCacheNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GemfireCacheManager

public GemfireCacheManager()
Method Detail

loadCaches

protected Collection<Cache> loadCaches()
Specified by:
loadCaches in class AbstractCacheManager

getCache

public Cache getCache(String name)
Specified by:
getCache in interface CacheManager
Overrides:
getCache in class AbstractCacheManager

setCache

public void setCache(com.gemstone.gemfire.cache.Cache gemfireCache)
Sets the GemFire Cache backing this CacheManager.

Parameters:
gemfireCache -

setRegions

public void setRegions(Set<com.gemstone.gemfire.cache.Region<?,?>> regions)
Sets a set of regions to use (alternative to injecting the GemFire Cache)

Parameters:
regions -