Search in sources :

Example 16 with Role

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;
}
Also used : CachePutInterceptor(cn.taketoday.cache.interceptor.CachePutInterceptor) Role(cn.taketoday.context.annotation.Role) ConditionalOnMissingBean(cn.taketoday.context.condition.ConditionalOnMissingBean) Advice(cn.taketoday.aop.support.annotation.Advice) Aspect(cn.taketoday.aop.support.annotation.Aspect) Component(cn.taketoday.lang.Component)

Aggregations

Role (cn.taketoday.context.annotation.Role)16 Bean (cn.taketoday.context.annotation.Bean)8 Component (cn.taketoday.lang.Component)8 ConditionalOnMissingBean (cn.taketoday.context.condition.ConditionalOnMissingBean)4 Advice (cn.taketoday.aop.support.annotation.Advice)3 Aspect (cn.taketoday.aop.support.annotation.Aspect)3 BeanFactoryCacheOperationSourceAdvisor (cn.taketoday.cache.interceptor.BeanFactoryCacheOperationSourceAdvisor)2 CacheInterceptor (cn.taketoday.cache.interceptor.CacheInterceptor)2 BeanFactoryJCacheOperationSourceAdvisor (cn.taketoday.cache.jcache.interceptor.BeanFactoryJCacheOperationSourceAdvisor)2 JCacheInterceptor (cn.taketoday.cache.jcache.interceptor.JCacheInterceptor)2 BeanFactoryTransactionAttributeSourceAdvisor (cn.taketoday.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor)2 TransactionInterceptor (cn.taketoday.transaction.interceptor.TransactionInterceptor)2 CacheEvictInterceptor (cn.taketoday.cache.interceptor.CacheEvictInterceptor)1 CachePutInterceptor (cn.taketoday.cache.interceptor.CachePutInterceptor)1 CacheableInterceptor (cn.taketoday.cache.interceptor.CacheableInterceptor)1 SecureRandomSessionIdGenerator (cn.taketoday.web.session.SecureRandomSessionIdGenerator)1