@Configuration public class AbstractJCacheConfiguration extends AbstractCachingConfiguration
@Configuration
class providing common
structure for enabling JSR-107 annotation-driven cache management capability.JCacheConfigurer
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(CachingConfigurer config)
Extract the configuration from the nominated
CachingConfigurer . |
setImportMetadata
@Nullable protected Supplier<CacheResolver> exceptionCacheResolver
protected void useCachingConfigurer(CachingConfigurer config)
AbstractCachingConfiguration
CachingConfigurer
.useCachingConfigurer
in class AbstractCachingConfiguration
@Bean(name="jCacheOperationSource") @Role(value=2) public JCacheOperationSource cacheOperationSource()