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

DefaultJCacheOperationSource

open class DefaultJCacheOperationSource : AnnotationJCacheOperationSource, BeanFactoryAware, InitializingBean, SmartInitializingSingleton

The default JCacheOperationSource implementation delegating default operations to configurable services with sensible defaults when not present.

Author
Stephane Nicoll

Since
4.1

Constructors

<init>

DefaultJCacheOperationSource()

The default JCacheOperationSource implementation delegating default operations to configurable services with sensible defaults when not present.

Functions

afterPropertiesSet

open fun afterPropertiesSet(): Unit

afterSingletonsInstantiated

open fun afterSingletonsInstantiated(): Unit

getCacheManager

open fun getCacheManager(): CacheManager

Return the specified cache manager to use, if any.

getCacheResolver

open fun getCacheResolver(): CacheResolver

Return the specified cache resolver to use, if any.

getExceptionCacheResolver

open fun getExceptionCacheResolver(): CacheResolver

Return the specified exception cache resolver to use, if any.

getKeyGenerator

open fun getKeyGenerator(): KeyGenerator

Return the specified key generator to use, if any.

setBeanFactory

open fun setBeanFactory(beanFactory: BeanFactory): Unit

setCacheManager

open fun setCacheManager(cacheManager: CacheManager): Unit

Set the default CacheManager to use to lookup cache by name. Only mandatory if the CacheResolver have not been set.

setCacheResolver

open fun setCacheResolver(cacheResolver: CacheResolver): Unit

Set the CacheResolver to resolve regular caches. If none is set, a default implementation using the specified cache manager will be used.

setExceptionCacheResolver

open fun setExceptionCacheResolver(exceptionCacheResolver: CacheResolver): Unit

Set the CacheResolver to resolve exception caches. If none is set, a default implementation using the specified cache manager will be used.

setKeyGenerator

open fun setKeyGenerator(keyGenerator: KeyGenerator): Unit

Set the default KeyGenerator. If none is set, a SimpleKeyGenerator honoring the JSR-107 javax.cache.annotation.CacheKey and javax.cache.annotation.CacheValue will be used.