@Configuration public class ProxyCachingConfiguration extends AbstractCachingConfiguration<CachingConfigurer>
@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() |
CacheInterceptor |
cacheInterceptor() |
CacheOperationSource |
cacheOperationSource() |
setImportMetadata, useCachingConfigurer
@Bean(name="org.springframework.cache.config.internalCacheAdvisor") @Role(value=2) public BeanFactoryCacheOperationSourceAdvisor cacheAdvisor()
@Bean @Role(value=2) public CacheOperationSource cacheOperationSource()
@Bean @Role(value=2) public CacheInterceptor cacheInterceptor()