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, setAdvice
| Access | Constructor and Description |
|---|---|
| public | |
| public | DefaultPointcutAdvisor(Advice
the Advice to use advice)Create a DefaultPointcutAdvisor that matches all methods. |
| public | DefaultPointcutAdvisor(Pointcut
the Pointcut targeting the Advice pointcut, Advice the Advice to run when Pointcut matches advice)Create a DefaultPointcutAdvisor, specifying Pointcut and Advice. |
| Modifier and Type | Method and Description |
|---|---|
| public Pointcut | getPointcut()
Implements org. |
| public void | |
| public String | toString()
Overrides org. |
| pointcut | back to summary |
|---|---|
| private Pointcut pointcut | |
| DefaultPointcutAdvisor | back to summary |
|---|---|
| public DefaultPointcutAdvisor() Create an empty DefaultPointcutAdvisor. Advice must be set before using setter methods.
Pointcut will normally be set also, but defaults to | |
| DefaultPointcutAdvisor | back to summary |
|---|---|
| public DefaultPointcutAdvisor(Advice advice) Create a DefaultPointcutAdvisor that matches all methods.
| |
| DefaultPointcutAdvisor | back to summary |
|---|---|
| public DefaultPointcutAdvisor(Pointcut pointcut, Advice advice) Create a DefaultPointcutAdvisor, specifying Pointcut and Advice. | |
| getPointcut | back to summary |
|---|---|
| public Pointcut getPointcut() Implements org. Doc from org. Get the Pointcut that drives this advisor.
| |
| setPointcut | back to summary |
|---|---|
| public void setPointcut(Pointcut pointcut) Specify the pointcut targeting the advice. Default is
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object. | |