public class EhCacheCacheManager extends AbstractTransactionSupportingCacheManager
CacheManager.EhCacheCache| Constructor and Description | 
|---|
| EhCacheCacheManager()Create a new EhCacheCacheManager, setting the target EhCache CacheManager
 through the  setCacheManager(net.sf.ehcache.CacheManager)bean property. | 
| EhCacheCacheManager(CacheManager cacheManager)Create a new EhCacheCacheManager for the given backing EhCache CacheManager. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | afterPropertiesSet()Invoked by the containing  BeanFactoryafter it has set all bean properties
 and satisfiedBeanFactoryAware,ApplicationContextAwareetc. | 
| CacheManager | getCacheManager()Return the backing EhCache  CacheManager. | 
| protected Cache | getMissingCache(String name)Return a missing cache with the specified  name, ornullif
 such a cache does not exist or could not be created on demand. | 
| protected Collection<Cache> | loadCaches()Load the initial caches for this cache manager. | 
| void | setCacheManager(CacheManager cacheManager)Set the backing EhCache  CacheManager. | 
decorateCache, isTransactionAware, setTransactionAwareaddCache, getCache, getCacheNames, initializeCaches, lookupCachepublic EhCacheCacheManager()
setCacheManager(net.sf.ehcache.CacheManager) bean property.public EhCacheCacheManager(CacheManager cacheManager)
cacheManager - the backing EhCache CacheManagerpublic void setCacheManager(@Nullable CacheManager cacheManager)
CacheManager.@Nullable public CacheManager getCacheManager()
CacheManager.public void afterPropertiesSet()
InitializingBeanBeanFactory after it has set all bean properties
 and satisfied BeanFactoryAware, ApplicationContextAware etc.
 This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class AbstractCacheManagerprotected Collection<Cache> loadCaches()
AbstractCacheManagerCalled by AbstractCacheManager.afterPropertiesSet() on startup.
 The returned collection may be empty but must not be null.
loadCaches in class AbstractCacheManagerprotected Cache getMissingCache(String name)
AbstractCacheManagername, or null if
 such a cache does not exist or could not be created on demand.
 Caches may be lazily created at runtime if the native provider supports it.
 If a lookup by name does not yield any result, an AbstractCacheManager
 subclass gets a chance to register such a cache at runtime. The returned cache
 will be automatically added to this cache manager.
getMissingCache in class AbstractCacheManagername - the name of the cache to retrievenull if no such cache exists or could be
 created on demandAbstractCacheManager.getCache(String)