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@Configurationclass 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 CacheResolverexceptionCacheResolverFields 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 JCacheOperationSourcecacheOperationSource()protected voiduseCachingConfigurer(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:AbstractCachingConfigurationExtract the configuration from the nominatedCachingConfigurer.- Overrides:
useCachingConfigurerin classAbstractCachingConfiguration
cacheOperationSource
@Bean(name="jCacheOperationSource") @Role(2) public JCacheOperationSource cacheOperationSource()