|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.cache.support.AbstractCacheManager
public abstract class AbstractCacheManager
Abstract base class implementing the common CacheManager methods. Useful for 'static' environments where the backing caches do not change.
| Constructor Summary | |
|---|---|
AbstractCacheManager()
|
|
| Method Summary | ||
|---|---|---|
void |
afterPropertiesSet()
Invoked by a BeanFactory after it has set all bean properties supplied (and satisfied BeanFactoryAware and ApplicationContextAware). |
|
|
getCache(String name)
Returns the cache associated with the given name. |
|
protected ConcurrentMap<String,Cache<?,?>> |
getCacheMap()
Returns the internal cache map. |
|
Collection<String> |
getCacheNames()
Returns a collection of the caches known by this cache manager. |
|
protected abstract Collection<Cache<?,?>> |
loadCaches()
Loads the caches into the cache manager. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCacheManager()
| Method Detail |
|---|
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 abstract Collection<Cache<?,?>> loadCaches()
caches - the collection of caches handled by the managerprotected final ConcurrentMap<String,Cache<?,?>> getCacheMap()
public <K,V> Cache<K,V> getCache(String name)
CacheManager
getCache in interface CacheManagername - cache identifier - cannot be null
public Collection<String> getCacheNames()
CacheManager
getCacheNames in interface CacheManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||