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() |
CacheManager |
getCacheManager()
Return the backing EhCache
CacheManager . |
protected org.springframework.cache.Cache |
getMissingCache(String name) |
protected Collection<org.springframework.cache.Cache> |
loadCaches() |
void |
setCacheManager(CacheManager cacheManager)
Set the backing EhCache
CacheManager . |
decorateCache, isTransactionAware, setTransactionAware
public EhCacheCacheManager()
setCacheManager(net.sf.ehcache.CacheManager)
bean property.public EhCacheCacheManager(CacheManager cacheManager)
cacheManager
- the backing EhCache CacheManager
public void setCacheManager(@Nullable CacheManager cacheManager)
CacheManager
.@Nullable public CacheManager getCacheManager()
CacheManager
.public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.cache.support.AbstractCacheManager
protected Collection<org.springframework.cache.Cache> loadCaches()
loadCaches
in class org.springframework.cache.support.AbstractCacheManager
protected org.springframework.cache.Cache getMissingCache(String name)
getMissingCache
in class org.springframework.cache.support.AbstractCacheManager