use of cn.taketoday.context.annotation.Role 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