org.springframework.cache.interceptor
Class BeanFactoryCacheDefinitionSourceAdvisor

java.lang.Object
  extended by org.springframework.aop.support.AbstractPointcutAdvisor
      extended by org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor
          extended by org.springframework.cache.interceptor.BeanFactoryCacheDefinitionSourceAdvisor
All Implemented Interfaces:
Serializable, Advisor, PointcutAdvisor, Aware, BeanFactoryAware, Ordered

public class BeanFactoryCacheDefinitionSourceAdvisor
extends AbstractBeanFactoryPointcutAdvisor

Advisor driven by a CacheDefinitionSource, used to include a transaction advice bean for methods that are transactional.

Author:
Costin Leau
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
BeanFactoryCacheDefinitionSourceAdvisor()
           
 
Method Summary
 Pointcut getPointcut()
          Get the Pointcut that drives this advisor.
 void setCacheDefinitionSource(CacheDefinitionSource cacheDefinitionSource)
          Set the cache operation attribute source which is used to find cache attributes.
 void setClassFilter(ClassFilter classFilter)
          Set the ClassFilter to use for this pointcut.
 
Methods inherited from class org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor
getAdvice, getAdviceBeanName, setAdviceBeanName, setBeanFactory, toString
 
Methods inherited from class org.springframework.aop.support.AbstractPointcutAdvisor
equals, getOrder, hashCode, isPerInstance, setOrder
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanFactoryCacheDefinitionSourceAdvisor

public BeanFactoryCacheDefinitionSourceAdvisor()
Method Detail

setCacheDefinitionSource

public void setCacheDefinitionSource(CacheDefinitionSource cacheDefinitionSource)
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.

See Also:
CacheInterceptor#setCacheAttributeSource

setClassFilter

public void setClassFilter(ClassFilter classFilter)
Set the ClassFilter to use for this pointcut. Default is ClassFilter.TRUE.


getPointcut

public Pointcut getPointcut()
Description copied from interface: PointcutAdvisor
Get the Pointcut that drives this advisor.