Class DefaultPointcutAdvisor
java.lang.Object
org.springframework.aop.support.AbstractPointcutAdvisor
org.springframework.aop.support.AbstractGenericPointcutAdvisor
org.springframework.aop.support.DefaultPointcutAdvisor
- All Implemented Interfaces:
- Serializable,- Advisor,- PointcutAdvisor,- Ordered
- Direct Known Subclasses:
- ReflectiveAspectJAdvisorFactory.SyntheticInstantiationAdvisor
Convenient Pointcut-driven Advisor implementation.
 
This is the most commonly used Advisor implementation. It can be used with any pointcut and advice type, except for introductions. There is normally no need to subclass this class, or to implement custom Advisors.
- Author:
- Rod Johnson, 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 SummaryConstructorsConstructorDescriptionCreate an empty DefaultPointcutAdvisor.DefaultPointcutAdvisor(Advice advice) Create a DefaultPointcutAdvisor that matches all methods.DefaultPointcutAdvisor(Pointcut pointcut, Advice advice) Create a DefaultPointcutAdvisor, specifying Pointcut and Advice.
- 
Method SummaryModifier and TypeMethodDescriptionGet the Pointcut that drives this advisor.voidsetPointcut(@Nullable Pointcut pointcut) Specify the pointcut targeting the advice.toString()Methods inherited from class org.springframework.aop.support.AbstractGenericPointcutAdvisorgetAdvice, setAdviceMethods 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- 
DefaultPointcutAdvisorpublic DefaultPointcutAdvisor()Create an empty DefaultPointcutAdvisor.Advice must be set before using setter methods. Pointcut will normally be set also, but defaults to Pointcut.TRUE.
- 
DefaultPointcutAdvisorCreate a DefaultPointcutAdvisor that matches all methods.Pointcut.TRUEwill be used as Pointcut.- Parameters:
- advice- the Advice to use
 
- 
DefaultPointcutAdvisor
 
- 
- 
Method Details- 
setPointcut
- 
getPointcutDescription copied from interface:PointcutAdvisorGet the Pointcut that drives this advisor.- Specified by:
- getPointcutin interface- PointcutAdvisor
 
- 
toString- Overrides:
- toStringin class- AbstractGenericPointcutAdvisor
 
 
-