use of cn.taketoday.aop.support.annotation.Advice in project today-framework by TAKETODAY.
the class ProxyCachingConfiguration method cacheEvictInterceptor.
@Aspect
@Component
@ConditionalOnMissingBean
@Advice(CacheEvict.class)
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
CacheEvictInterceptor cacheEvictInterceptor(CacheManager cacheManager, CacheExpressionOperations operations) {
CacheEvictInterceptor cacheEvictInterceptor = new CacheEvictInterceptor(cacheManager);
cacheEvictInterceptor.setExpressionOperations(operations);
return cacheEvictInterceptor;
}
use of cn.taketoday.aop.support.annotation.Advice in project today-framework by TAKETODAY.
the class ProxyCachingConfiguration method cacheableInterceptor.
@Aspect
@Component
@Advice(Cacheable.class)
@ConditionalOnMissingBean
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
CacheableInterceptor cacheableInterceptor(CacheManager cacheManager, CacheExpressionOperations operations) {
CacheableInterceptor cacheableInterceptor = new CacheableInterceptor(cacheManager);
cacheableInterceptor.setExpressionOperations(operations);
return cacheableInterceptor;
}
use of cn.taketoday.aop.support.annotation.Advice in project today-framework by TAKETODAY.
the class ProxyCachingConfiguration method cachePutInterceptor.
@Aspect
@Component
@Advice(CachePut.class)
@ConditionalOnMissingBean
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
CachePutInterceptor cachePutInterceptor(CacheManager cacheManager, CacheExpressionOperations operations) {
CachePutInterceptor cachePutInterceptor = new CachePutInterceptor(cacheManager);
cachePutInterceptor.setExpressionOperations(operations);
return cachePutInterceptor;
}
Aggregations