|
spring-context | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.cache.support.CompositeCacheManager
public class CompositeCacheManager
Composite CacheManager implementation that iterates
over a given collection of CacheManager instances.
Allows NoOpCacheManager to be automatically added to the list for handling
the cache declarations without a backing store.
| Constructor Summary | |
|---|---|
CompositeCacheManager()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
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. |
void |
setCacheManagers(java.util.Collection<CacheManager> cacheManagers)
|
void |
setFallbackToNoOpCache(boolean fallbackToNoOpCache)
Indicate whether a NoOpCacheManager should be added at the end of the manager lists. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeCacheManager()
| Method Detail |
|---|
public void setCacheManagers(java.util.Collection<CacheManager> cacheManagers)
public void setFallbackToNoOpCache(boolean fallbackToNoOpCache)
NoOpCacheManager should be added at the end of the manager lists.
In this case, any getCache requests not handled by the configured cache managers will
be automatically handled by the NoOpCacheManager (and hence never return null).
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic Cache getCache(java.lang.String name)
CacheManager
getCache in interface CacheManagername - cache identifier (must not be null)
null if none is foundpublic java.util.Collection<java.lang.String> getCacheNames()
CacheManager
getCacheNames in interface CacheManager
|
spring-context | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||