public class JCacheCacheManager extends AbstractCacheManager
CacheManager implementation
backed by a JCache javax.cache.CacheManager.| Modifier and Type | Field and Description |
|---|---|
private boolean |
allowNullValues |
private javax.cache.CacheManager |
cacheManager |
| Constructor and Description |
|---|
JCacheCacheManager() |
| Modifier and Type | Method and Description |
|---|---|
Cache |
getCache(java.lang.String name)
Return the cache associated with the given name.
|
javax.cache.CacheManager |
getCacheManager()
Return the backing JCache
javax.cache.CacheManager. |
boolean |
isAllowNullValues()
Return whether this cache manager accepts and converts null values
for all of its caches.
|
protected java.util.Collection<Cache> |
loadCaches()
Load the caches for this cache manager.
|
void |
setAllowNullValues(boolean allowNullValues)
Specify whether to accept and convert null values for all caches
in this cache manager.
|
void |
setCacheManager(javax.cache.CacheManager cacheManager)
Set the backing JCache
javax.cache.CacheManager. |
addCache, afterPropertiesSet, getCacheNamesprivate javax.cache.CacheManager cacheManager
private boolean allowNullValues
public void setCacheManager(javax.cache.CacheManager cacheManager)
javax.cache.CacheManager.public javax.cache.CacheManager getCacheManager()
javax.cache.CacheManager.public void setAllowNullValues(boolean allowNullValues)
Default is "true", despite JSR-107 itself not supporting null values. An internal holder object will be used to store user-level null values.
public boolean isAllowNullValues()
protected java.util.Collection<Cache> loadCaches()
AbstractCacheManagerloadCaches in class AbstractCacheManagerpublic Cache getCache(java.lang.String name)
CacheManagergetCache in interface CacheManagergetCache in class AbstractCacheManagername - cache identifier (must not be null)null if none is found