CacheManager methods.
Useful for 'static' environments where the backing caches do not change.
| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentMap | |
| private volatile Set |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterPropertiesSet()
Implements org. BeanFactory after it has set all bean properties
and satisfied BeanFactoryAware, ApplicationContextAware etc.
This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set. |
| protected Cache | Returns: the decorated Cache object to be used instead, or simply the passed-in Cache object by defaultthe Cache object to be added to this CacheManager cache)Decorate the given Cache object if necessary. |
| public Cache | getCache(String
the cache identifier (must not be name)null)Implements org. |
| public Collection | getCacheNames()
Implements org. |
| protected Cache | Returns: the missing cache, ornull if no such cache exists or could be
created on demandthe name of the cache to retrieve name)Return a missing cache with the specified |
| public void | |
| protected abstract Collection | |
| protected final Cache | Returns: the associated Cache instance, ornull if none foundthe cache identifier (must not be name)null)Check for a registered cache of the given name. |
| private void | updateCacheNames(String
the name of the cache to be added name)Update the exposed |
| cacheMap | back to summary |
|---|---|
| private final ConcurrentMap<String, Cache> cacheMap | |
| cacheNames | back to summary |
|---|---|
| private volatile Set<String> cacheNames | |
| AbstractCacheManager | back to summary |
|---|---|
| public AbstractCacheManager() | |
| afterPropertiesSet | back to summary |
|---|---|
| public void afterPropertiesSet() Implements org. Doc from org. Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
| |
| decorateCache | back to summary |
|---|---|
| protected Cache decorateCache(Cache cache) Decorate the given Cache object if necessary. | |
| getCache | back to summary |
|---|---|
| public Cache getCache(String name) Implements org. Doc from org. Get the cache associated with the given name. Note that the cache may be lazily created at runtime if the native provider supports it. | |
| getCacheNames | back to summary |
|---|---|
| public Collection Implements org. Doc from org. Get a collection of the cache names known by this manager.
| |
| getMissingCache | back to summary |
|---|---|
| protected Cache getMissingCache(String name) Return a missing cache with the specified Caches may be lazily created at runtime if the native provider supports it.
If a lookup by name does not yield any result, an
| |
| initializeCaches | back to summary |
|---|---|
| public void initializeCaches() Initialize the static configuration of caches. Triggered on startup through
| |
| loadCaches | back to summary |
|---|---|
| protected abstract Collection Load the initial caches for this cache manager. Called by | |
| lookupCache | back to summary |
|---|---|
| protected final Cache lookupCache(String name) Check for a registered cache of the given name.
In contrast to
| |
| updateCacheNames | back to summary |
|---|---|
| private void updateCacheNames(String name) Update the exposed This will always be called within a full
| |