Class ProxyCachingConfiguration
- java.lang.Object
- org.springframework.cache.annotation.AbstractCachingConfiguration
- org.springframework.cache.annotation.ProxyCachingConfiguration
- All Implemented Interfaces:
Aware
,ImportAware
@Configuration @Role(2) public class ProxyCachingConfiguration extends AbstractCachingConfiguration
@Configuration
class that registers the Spring infrastructure beans necessary to enable proxy-based annotation-driven cache management.- Since:
- 3.1
- Author:
- Chris Beams, Juergen Hoeller
- See Also:
EnableCaching
,CachingConfigurationSelector
Field Summary
Fields inherited from class org.springframework.cache.annotation.AbstractCachingConfiguration
cacheManager, cacheResolver, enableCaching, errorHandler, keyGenerator
Constructor Summary
Constructors Constructor Description ProxyCachingConfiguration()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BeanFactoryCacheOperationSourceAdvisor
cacheAdvisor()
CacheInterceptor
cacheInterceptor()
CacheOperationSource
cacheOperationSource()
Methods inherited from class org.springframework.cache.annotation.AbstractCachingConfiguration
setImportMetadata, useCachingConfigurer
Constructor Detail
ProxyCachingConfiguration
public ProxyCachingConfiguration()
Method Detail
cacheAdvisor
@Bean(name="org.springframework.cache.config.internalCacheAdvisor") @Role(2) public BeanFactoryCacheOperationSourceAdvisor cacheAdvisor()
cacheOperationSource
@Bean @Role(2) public CacheOperationSource cacheOperationSource()
cacheInterceptor
@Bean @Role(2) public CacheInterceptor cacheInterceptor()