org.springframework.cache.support
Class SimpleCacheManager

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

public class SimpleCacheManager
extends AbstractCacheManager

Simple cache manager working against a given collection of caches. Useful for testing or simple caching declarations.

Author:
Costin Leau

Constructor Summary
SimpleCacheManager()
           
 
Method Summary
protected  Collection<Cache> loadCaches()
          Loads the caches into the cache manager.
 void setCaches(Collection<Cache> caches)
           
 
Methods inherited from class org.springframework.cache.support.AbstractCacheManager
afterPropertiesSet, getCache, getCacheMap, getCacheNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleCacheManager

public SimpleCacheManager()
Method Detail

loadCaches

protected Collection<Cache> loadCaches()
Description copied from class: AbstractCacheManager
Loads the caches into the cache manager. Occurs at startup. The returned collection should not be null.

Specified by:
loadCaches in class AbstractCacheManager

setCaches

public void setCaches(Collection<Cache> caches)