@Configuration(proxyBeanMethods=false) @Role(value=2) 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
AbstractCachingConfiguration.CachingConfigurerSupplier
exceptionCacheResolver
cacheManager, cacheResolver, enableCaching, errorHandler, keyGenerator
Constructor and Description |
---|
ProxyJCacheConfiguration() |
Modifier and Type | Method and Description |
---|---|
BeanFactoryJCacheOperationSourceAdvisor |
cacheAdvisor(JCacheOperationSource jCacheOperationSource,
JCacheInterceptor jCacheInterceptor) |
JCacheInterceptor |
cacheInterceptor(JCacheOperationSource jCacheOperationSource) |
cacheOperationSource, useCachingConfigurer
setImportMetadata
@Bean(name="org.springframework.cache.config.internalJCacheAdvisor") @Role(value=2) public BeanFactoryJCacheOperationSourceAdvisor cacheAdvisor(JCacheOperationSource jCacheOperationSource, JCacheInterceptor jCacheInterceptor)
@Bean(name="jCacheInterceptor") @Role(value=2) public JCacheInterceptor cacheInterceptor(JCacheOperationSource jCacheOperationSource)