Class BeanFactoryJCacheOperationSourceAdvisor
java.lang.Object
org.springframework.aop.support.AbstractPointcutAdvisor
org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor
org.springframework.cache.jcache.interceptor.BeanFactoryJCacheOperationSourceAdvisor
- All Implemented Interfaces:
Serializable,org.springframework.aop.Advisor,org.springframework.aop.PointcutAdvisor,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.core.Ordered
public class BeanFactoryJCacheOperationSourceAdvisor
extends org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor
Advisor driven by a
JCacheOperationSource, used to include a
cache advice bean for methods that are cacheable.- Since:
- 4.1
- Author:
- Stephane Nicoll, Juergen Hoeller
- See Also:
-
AbstractBeanFactoryPointcutAdvisor.setAdviceBeanName(java.lang.String)JCacheInterceptor- Serialized Form
-
Field Summary
Fields inherited from interface org.springframework.aop.Advisor
EMPTY_ADVICEFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.aop.PointcutvoidsetCacheOperationSource(JCacheOperationSource cacheOperationSource) Set the cache operation attribute source which is used to find cache attributes.voidsetClassFilter(org.springframework.aop.ClassFilter classFilter) Set theClassFilterto use for this pointcut.Methods inherited from class org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor
getAdvice, getAdviceBeanName, setAdvice, setAdviceBeanName, setBeanFactory, toStringMethods inherited from class org.springframework.aop.support.AbstractPointcutAdvisor
equals, getOrder, hashCode, setOrderMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.aop.Advisor
isPerInstance
-
Constructor Details
-
BeanFactoryJCacheOperationSourceAdvisor
public BeanFactoryJCacheOperationSourceAdvisor()
-
-
Method Details
-
setCacheOperationSource
Set the cache operation attribute source which is used to find cache attributes. This should usually be identical to the source reference set on the cache interceptor itself. -
setClassFilter
public void setClassFilter(org.springframework.aop.ClassFilter classFilter) Set theClassFilterto use for this pointcut. Default isClassFilter.TRUE. -
getPointcut
public org.springframework.aop.Pointcut getPointcut()
-