spring-framework / org.springframework.cache.jcache / JCacheCacheManager

JCacheCacheManager

open class JCacheCacheManager : AbstractTransactionSupportingCacheManager

org.springframework.cache.CacheManager implementation backed by a JCache javax.cache.CacheManager.

Note: This class has been updated for JCache 1.0, as of Spring 4.0.

Author
Juergen Hoeller

Author
Stephane Nicoll

Since
3.2

Constructors

<init>

JCacheCacheManager()

Create a new JCacheCacheManager, setting the target JCache CacheManager through the #setCacheManager bean property.

JCacheCacheManager(cacheManager: CacheManager)

Create a new JCacheCacheManager for the given backing JCache.

Functions

afterPropertiesSet

open fun afterPropertiesSet(): Unit

getCacheManager

open fun getCacheManager(): CacheManager

Return the backing JCache javax.cache.CacheManager.

isAllowNullValues

open fun isAllowNullValues(): Boolean

Return whether this cache manager accepts and converts null values for all of its caches.

setAllowNullValues

open fun setAllowNullValues(allowNullValues: Boolean): Unit

Specify whether to accept and convert 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.

setCacheManager

open fun setCacheManager(cacheManager: CacheManager): Unit

Set the backing JCache javax.cache.CacheManager.