public class JCacheCacheManager extends AbstractTransactionSupportingCacheManager
CacheManager implementation
 backed by a JCache javax.cache.CacheManager.
 Note: This class has been updated for JCache 1.0, as of Spring 4.0.
JCacheCache| Constructor and Description | 
|---|
| JCacheCacheManager()Create a new  JCacheCacheManagerwithout a backing JCachejavax.cache.CacheManager. | 
| JCacheCacheManager(javax.cache.CacheManager cacheManager)Create a new  JCacheCacheManagerfor the given backing JCachejavax.cache.CacheManager. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | afterPropertiesSet()Invoked by the containing  BeanFactoryafter it has set all bean properties
 and satisfiedBeanFactoryAware,ApplicationContextAwareetc. | 
| javax.cache.CacheManager | getCacheManager()Return the backing JCache  javax.cache.CacheManager. | 
| protected Cache | getMissingCache(String name)Return a missing cache with the specified  name, ornullif
 such a cache does not exist or could not be created on demand. | 
| boolean | isAllowNullValues()Return whether this cache manager accepts and converts  nullvalues
 for all of its caches. | 
| protected Collection<Cache> | loadCaches()Load the initial caches for this cache manager. | 
| void | setAllowNullValues(boolean allowNullValues)Specify whether to accept and convert  nullvalues for all caches
 in this cache manager. | 
| void | setCacheManager(javax.cache.CacheManager cacheManager)Set the backing JCache  javax.cache.CacheManager. | 
decorateCache, isTransactionAware, setTransactionAwareaddCache, getCache, getCacheNames, initializeCaches, lookupCachepublic JCacheCacheManager()
JCacheCacheManager without a backing JCache
 javax.cache.CacheManager.
 The backing JCache javax.cache.CacheManager can be set via the
 setCacheManager(javax.cache.CacheManager) bean property.
public JCacheCacheManager(javax.cache.CacheManager cacheManager)
JCacheCacheManager for the given backing JCache
 javax.cache.CacheManager.cacheManager - the backing JCache javax.cache.CacheManagerpublic void setCacheManager(@Nullable javax.cache.CacheManager cacheManager)
javax.cache.CacheManager.@Nullable public javax.cache.CacheManager getCacheManager()
javax.cache.CacheManager.public void setAllowNullValues(boolean allowNullValues)
null values for all caches
 in this cache manager.
 Default is "true", despite JSR-107 itself not supporting null values.
 An internal holder object will be used to store user-level nulls.
public boolean isAllowNullValues()
null values
 for all of its caches.public void afterPropertiesSet()
InitializingBeanBeanFactory 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.
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class AbstractCacheManagerprotected Collection<Cache> loadCaches()
AbstractCacheManagerCalled by AbstractCacheManager.afterPropertiesSet() on startup.
 The returned collection may be empty but must not be null.
loadCaches in class AbstractCacheManagerprotected Cache getMissingCache(String name)
AbstractCacheManagername, or null if
 such a cache does not exist or could not be created on demand.
 Caches may be lazily created at runtime if the native provider supports it.
 If a lookup by name does not yield any result, an AbstractCacheManager
 subclass gets a chance to register such a cache at runtime. The returned cache
 will be automatically added to this cache manager.
getMissingCache in class AbstractCacheManagername - the name of the cache to retrievenull if no such cache exists or could be
 created on demandAbstractCacheManager.getCache(String)