public class SimpleCacheManager extends AbstractCacheManager
When using this implementation directly, i.e. not via a regular
bean registration, AbstractCacheManager.initializeCaches()
should be invoked
to initialize its internal state once the
caches have been provided.
NoOpCache
,
ConcurrentMapCache
Constructor and Description |
---|
SimpleCacheManager() |
Modifier and Type | Method and Description |
---|---|
protected Collection<? extends Cache> |
loadCaches()
Load the initial caches for this cache manager.
|
void |
setCaches(Collection<? extends Cache> caches)
Specify the collection of Cache instances to use for this CacheManager.
|
addCache, afterPropertiesSet, decorateCache, getCache, getCacheNames, getMissingCache, initializeCaches, lookupCache
public void setCaches(Collection<? extends Cache> caches)
AbstractCacheManager.initializeCaches()
protected Collection<? extends Cache> loadCaches()
AbstractCacheManager
Called by AbstractCacheManager.afterPropertiesSet()
on startup.
The returned collection may be empty but must not be null
.
loadCaches
in class AbstractCacheManager