public abstract class AbstractCacheManager extends java.lang.Object implements CacheManager, InitializingBean
CacheManager
methods. Useful for 'static' environments where the backing caches do
not change.| Constructor and Description |
|---|
AbstractCacheManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCache(Cache cache) |
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied
(and satisfied BeanFactoryAware and ApplicationContextAware).
|
Cache |
getCache(java.lang.String name)
Return the cache associated with the given name.
|
java.util.Collection<java.lang.String> |
getCacheNames()
Return a collection of the caches known by this cache manager.
|
protected abstract java.util.Collection<? extends Cache> |
loadCaches()
Load the caches for this cache manager.
|
public void afterPropertiesSet()
InitializingBeanThis method allows the bean instance to perform initialization only possible when all bean properties have been set and to throw an exception in the event of misconfiguration.
afterPropertiesSet in interface InitializingBeanprotected final void addCache(Cache cache)
public Cache getCache(java.lang.String name)
CacheManagergetCache in interface CacheManagername - cache identifier (must not be null)null if none is foundpublic java.util.Collection<java.lang.String> getCacheNames()
CacheManagergetCacheNames in interface CacheManagerprotected abstract java.util.Collection<? extends Cache> loadCaches()