Package org.springframework.aop.support
Class DefaultBeanFactoryPointcutAdvisor
java.lang.Object
org.springframework.aop.support.AbstractPointcutAdvisor
org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisor
org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor
- All Implemented Interfaces:
- Serializable,- Advisor,- PointcutAdvisor,- Aware,- BeanFactoryAware,- Ordered
Concrete BeanFactory-based PointcutAdvisor that allows for any Advice
 to be configured as reference to an Advice bean in the BeanFactory,
 as well as the Pointcut to be configured through a bean property.
 
Specifying the name of an advice bean instead of the advice object itself (if running within a BeanFactory) increases loose coupling at initialization time, in order to not initialize the advice object until the pointcut actually matches.
- Since:
- 2.0.2
- Author:
- Juergen Hoeller
- See Also:
- 
Field SummaryFields inherited from interface org.springframework.aop.AdvisorEMPTY_ADVICEFields inherited from interface org.springframework.core.OrderedHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionGet the Pointcut that drives this advisor.voidsetPointcut(Pointcut pointcut) Specify the pointcut targeting the advice.toString()Methods inherited from class org.springframework.aop.support.AbstractBeanFactoryPointcutAdvisorgetAdvice, getAdviceBeanName, setAdvice, setAdviceBeanName, setBeanFactoryMethods inherited from class org.springframework.aop.support.AbstractPointcutAdvisorequals, getOrder, hashCode, setOrderMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.aop.AdvisorisPerInstance
- 
Constructor Details- 
DefaultBeanFactoryPointcutAdvisorpublic DefaultBeanFactoryPointcutAdvisor()
 
- 
- 
Method Details- 
setPointcutSpecify the pointcut targeting the advice.Default is Pointcut.TRUE.
- 
getPointcutDescription copied from interface:PointcutAdvisorGet the Pointcut that drives this advisor.
- 
toString- Overrides:
- toStringin class- AbstractBeanFactoryPointcutAdvisor
 
 
-