|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.aop.support.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.
Constructor Summary | |
DefaultPointcutAdvisor()
Create an empty DefaultPointcutAdvisor. |
|
DefaultPointcutAdvisor(org.aopalliance.aop.Advice advice)
Create a DefaultPointcutAdvisor that matches all methods. |
|
DefaultPointcutAdvisor(Pointcut pointcut,
org.aopalliance.aop.Advice advice)
Create a DefaultPointcutAdvisor, specifying pointcut and advice |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
org.aopalliance.aop.Advice |
getAdvice()
Return the advice part of this aspect. |
int |
getOrder()
Return the order value of this object, higher value meaning greater in terms of sorting. |
Pointcut |
getPointcut()
Get the Pointcut that drives this advisor. |
boolean |
isPerInstance()
Return whether this advice is associated with a particular instance (for example, creating a mixin) or is it shared with all instances of the advised class obtained from the same Spring bean factory. |
void |
setAdvice(org.aopalliance.aop.Advice advice)
|
void |
setOrder(int order)
|
void |
setPointcut(Pointcut pointcut)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DefaultPointcutAdvisor()
public DefaultPointcutAdvisor(org.aopalliance.aop.Advice advice)
advice
- advice to usepublic DefaultPointcutAdvisor(Pointcut pointcut, org.aopalliance.aop.Advice advice)
pointcut
- pointcut targeting the adviceadvice
- advice to run when pointcut matchesMethod Detail |
public void setOrder(int order)
public int getOrder()
Ordered
Higher value can be interpreted as lower priority, consequently the first object has highest priority (somewhat analogous to Servlet "load-on-startup" values).
getOrder
in interface Ordered
public void setAdvice(org.aopalliance.aop.Advice advice)
public org.aopalliance.aop.Advice getAdvice()
Advisor
getAdvice
in interface Advisor
public Pointcut getPointcut()
PointcutAdvisor
getPointcut
in interface PointcutAdvisor
public void setPointcut(Pointcut pointcut)
public boolean isPerInstance()
Advisor
isPerInstance
in interface Advisor
public boolean equals(java.lang.Object o)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |