@Configuration(proxyBeanMethods=false) public abstract class AbstractJCacheConfiguration extends AbstractCachingConfiguration
@Configuration
class providing common
structure for enabling JSR-107 annotation-driven cache management capability.JCacheConfigurer
AbstractCachingConfiguration.CachingConfigurerSupplier
Modifier and Type | Field and Description |
---|---|
protected Supplier<CacheResolver> |
exceptionCacheResolver |
cacheManager, cacheResolver, enableCaching, errorHandler, keyGenerator
Constructor and Description |
---|
AbstractJCacheConfiguration() |
Modifier and Type | Method and Description |
---|---|
JCacheOperationSource |
cacheOperationSource() |
protected void |
useCachingConfigurer(AbstractCachingConfiguration.CachingConfigurerSupplier cachingConfigurerSupplier)
Extract the configuration from the nominated
CachingConfigurer . |
setImportMetadata
@Nullable protected Supplier<CacheResolver> exceptionCacheResolver
protected void useCachingConfigurer(AbstractCachingConfiguration.CachingConfigurerSupplier cachingConfigurerSupplier)
AbstractCachingConfiguration
CachingConfigurer
.useCachingConfigurer
in class AbstractCachingConfiguration
@Bean(name="jCacheOperationSource") @Role(value=2) public JCacheOperationSource cacheOperationSource()