Class AbstractJCacheConfiguration
- java.lang.Object
- org.springframework.cache.annotation.AbstractCachingConfiguration
- org.springframework.cache.jcache.config.AbstractJCacheConfiguration
- All Implemented Interfaces:
Aware
,ImportAware
- Direct Known Subclasses:
AspectJJCacheConfiguration
,ProxyJCacheConfiguration
@Configuration public abstract class AbstractJCacheConfiguration extends AbstractCachingConfiguration
Abstract JSR-107 specific@Configuration
class providing common structure for enabling JSR-107 annotation-driven cache management capability.- Since:
- 4.1
- Author:
- Stephane Nicoll
- See Also:
JCacheConfigurer
Field Summary
Fields Modifier and Type Field Description protected CacheResolver
exceptionCacheResolver
Fields inherited from class org.springframework.cache.annotation.AbstractCachingConfiguration
cacheManager, cacheResolver, enableCaching, errorHandler, keyGenerator
Constructor Summary
Constructors Constructor Description AbstractJCacheConfiguration()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JCacheOperationSource
cacheOperationSource()
protected void
useCachingConfigurer(CachingConfigurer config)
Extract the configuration from the nominatedCachingConfigurer
.Methods inherited from class org.springframework.cache.annotation.AbstractCachingConfiguration
setImportMetadata
Field Detail
exceptionCacheResolver
protected CacheResolver exceptionCacheResolver
Constructor Detail
AbstractJCacheConfiguration
public AbstractJCacheConfiguration()
Method Detail
useCachingConfigurer
protected void useCachingConfigurer(CachingConfigurer config)
Description copied from class:AbstractCachingConfiguration
Extract the configuration from the nominatedCachingConfigurer
.- Overrides:
useCachingConfigurer
in classAbstractCachingConfiguration
cacheOperationSource
@Bean(name="jCacheOperationSource") @Role(2) public JCacheOperationSource cacheOperationSource()