spring-framework / org.springframework.cache.jcache.interceptor / JCacheAspectSupport

JCacheAspectSupport

open class JCacheAspectSupport : AbstractCacheInvoker, InitializingBean

Base class for JSR-107 caching aspects, such as the JCacheInterceptor or an AspectJ aspect.

Use the Spring caching abstraction for cache-related operations. No JSR-107 javax.cache.Cache or javax.cache.CacheManager are required to process standard JSR-107 cache annotations.

The JCacheOperationSource is used for determining caching operations

A cache aspect is serializable if its JCacheOperationSource is serializable.

Author
Stephane Nicoll

Since
4.1

See Also
org.springframework.cache.interceptor.CacheAspectSupportKeyGeneratorAdapterCacheResolverAdapter

Constructors

<init>

JCacheAspectSupport()

Base class for JSR-107 caching aspects, such as the JCacheInterceptor or an AspectJ aspect.

Use the Spring caching abstraction for cache-related operations. No JSR-107 javax.cache.Cache or javax.cache.CacheManager are required to process standard JSR-107 cache annotations.

The JCacheOperationSource is used for determining caching operations

A cache aspect is serializable if its JCacheOperationSource is serializable.

Functions

afterPropertiesSet

open fun afterPropertiesSet(): Unit

getCacheOperationSource

open fun getCacheOperationSource(): JCacheOperationSource

Return the CacheOperationSource for this cache aspect.

setCacheOperationSource

open fun setCacheOperationSource(cacheOperationSource: JCacheOperationSource): Unit