Top Description Fields Constructors Methods
org.springframework.cache.interceptor

public Class BeanFactoryCacheOperationSourceAdvisor

extends AbstractBeanFactoryPointcutAdvisor
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
org.springframework.aop.ClassFilter, .Pointcut, org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor

Advisor driven by a CacheOperationSource, used to include a cache advice bean for methods that are cacheable.
Authors
Costin Leau, Juergen Hoeller
Since
3.1
See Also
setAdviceBeanName, CacheInterceptor

Field Summary

Modifier and TypeField and Description
private final CacheOperationSourcePointcut

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Pointcut
getPointcut()

Implements org.springframework.aop.PointcutAdvisor.getPointcut.

Get the Pointcut that drives this advisor.

public void
setCacheOperationSource(CacheOperationSource cacheOperationSource)

Set the cache operation attribute source which is used to find cache attributes.

public void
setClassFilter(ClassFilter classFilter)

Set the ClassFilter to use for this pointcut.

Inherited from org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor:
getAdvicegetAdviceBeanNamesetAdvicesetAdviceBeanNamesetBeanFactorytoString

Field Detail

pointcutback to summary
private final CacheOperationSourcePointcut pointcut

Constructor Detail

BeanFactoryCacheOperationSourceAdvisorback to summary
public BeanFactoryCacheOperationSourceAdvisor()

Method Detail

getPointcutback to summary
public Pointcut getPointcut()

Implements org.springframework.aop.PointcutAdvisor.getPointcut.

Doc from org.springframework.aop.PointcutAdvisor.getPointcut.

Get the Pointcut that drives this advisor.

Annotations
@Override
setCacheOperationSourceback to summary
public void setCacheOperationSource(CacheOperationSource cacheOperationSource)

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#setCacheOperationSource
setClassFilterback to summary
public void setClassFilter(ClassFilter classFilter)

Set the ClassFilter to use for this pointcut. Default is ClassFilter#TRUE.