|
spring-context | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.cache.support.AbstractCacheManager
org.springframework.cache.jcache.JCacheCacheManager
public class JCacheCacheManager
CacheManager
implementation
backed by a JCache CacheManager
.
Constructor Summary | |
---|---|
JCacheCacheManager()
|
Method Summary | |
---|---|
Cache |
getCache(java.lang.String name)
Return the cache associated with the given name. |
javax.cache.CacheManager |
getCacheManager()
Return the backing JCache 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 CacheManager . |
Methods inherited from class org.springframework.cache.support.AbstractCacheManager |
---|
addCache, afterPropertiesSet, getCacheNames |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JCacheCacheManager()
Method Detail |
---|
public void setCacheManager(javax.cache.CacheManager cacheManager)
CacheManager
.
public javax.cache.CacheManager getCacheManager()
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()
AbstractCacheManager
loadCaches
in class AbstractCacheManager
public Cache getCache(java.lang.String name)
CacheManager
getCache
in interface CacheManager
getCache
in class AbstractCacheManager
name
- cache identifier (must not be null
)
null
if none is found
|
spring-context | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |