@Configuration(proxyBeanMethods=false) @Role(value=2) public class ProxyCachingConfiguration extends AbstractCachingConfiguration
@Configuration
class that registers the Spring infrastructure beans necessary
to enable proxy-based annotation-driven cache management.EnableCaching
,
CachingConfigurationSelector
cacheManager, cacheResolver, enableCaching, errorHandler, keyGenerator
Constructor and Description |
---|
ProxyCachingConfiguration() |
Modifier and Type | Method and Description |
---|---|
BeanFactoryCacheOperationSourceAdvisor |
cacheAdvisor(CacheOperationSource cacheOperationSource,
CacheInterceptor cacheInterceptor) |
CacheInterceptor |
cacheInterceptor(CacheOperationSource cacheOperationSource) |
CacheOperationSource |
cacheOperationSource() |
setImportMetadata, useCachingConfigurer
@Bean(name="org.springframework.cache.config.internalCacheAdvisor") @Role(value=2) public BeanFactoryCacheOperationSourceAdvisor cacheAdvisor(CacheOperationSource cacheOperationSource, CacheInterceptor cacheInterceptor)
@Bean @Role(value=2) public CacheOperationSource cacheOperationSource()
@Bean @Role(value=2) public CacheInterceptor cacheInterceptor(CacheOperationSource cacheOperationSource)