|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.support.AbstractPointcutAdvisor org.springframework.aop.support.AbstractGenericPointcutAdvisor org.springframework.aop.support.DefaultPointcutAdvisor
public class DefaultPointcutAdvisor
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.
setPointcut(org.springframework.aop.Pointcut)
,
AbstractGenericPointcutAdvisor.setAdvice(org.aopalliance.aop.Advice)
,
Serialized FormField Summary |
---|
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
DefaultPointcutAdvisor()
Create 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 Summary | |
---|---|
Pointcut |
getPointcut()
Get the Pointcut that drives this advisor. |
void |
setPointcut(Pointcut pointcut)
Specify the pointcut targeting the advice. |
String |
toString()
|
Methods inherited from class org.springframework.aop.support.AbstractGenericPointcutAdvisor |
---|
getAdvice, setAdvice |
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 |
---|
public DefaultPointcutAdvisor()
Advice must be set before use using setter methods.
Pointcut will normally be set also, but defaults to Pointcut.TRUE
.
public DefaultPointcutAdvisor(Advice advice)
Pointcut.TRUE
will be used as Pointcut.
advice
- the Advice to usepublic DefaultPointcutAdvisor(Pointcut pointcut, Advice advice)
pointcut
- the Pointcut targeting the Adviceadvice
- the Advice to run when Pointcut matchesMethod Detail |
---|
public void setPointcut(Pointcut pointcut)
Default is Pointcut.TRUE
.
AbstractGenericPointcutAdvisor.setAdvice(org.aopalliance.aop.Advice)
public Pointcut getPointcut()
PointcutAdvisor
getPointcut
in interface PointcutAdvisor
public String toString()
toString
in class AbstractGenericPointcutAdvisor
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |