@Configuration public class ProxyJCacheConfiguration extends AbstractJCacheConfiguration
@Configuration
class that registers the Spring infrastructure beans necessary
to enable proxy-based annotation-driven JSR-107 cache management.
Can safely be used alongside Spring's caching support.
EnableCaching
,
CachingConfigurationSelector
exceptionCacheResolver
cacheManager, cacheResolver, enableCaching, errorHandler, keyGenerator
Constructor and Description |
---|
ProxyJCacheConfiguration() |
Modifier and Type | Method and Description |
---|---|
BeanFactoryJCacheOperationSourceAdvisor |
cacheAdvisor() |
JCacheInterceptor |
cacheInterceptor() |
cacheOperationSource, useCachingConfigurer
reconcileCacheManager, setImportMetadata
@Bean(name="org.springframework.cache.config.internalJCacheAdvisor") @Role(value=2) public BeanFactoryJCacheOperationSourceAdvisor cacheAdvisor()
@Bean(name="jCacheInterceptor") @Role(value=2) public JCacheInterceptor cacheInterceptor()