public class

DefaultPointcutAdvisor

extends AbstractGenericPointcutAdvisor
implements Serializable
java.lang.Object
   ↳ org.springframework.aop.support.AbstractPointcutAdvisor
     ↳ org.springframework.aop.support.AbstractGenericPointcutAdvisor
       ↳ org.springframework.aop.support.DefaultPointcutAdvisor
Known Direct Subclasses

Class Overview

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.

Summary

[Expand]
Inherited Constants
From interface org.springframework.core.Ordered
Public Constructors
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.
Public Methods
Pointcut getPointcut()
void setPointcut(Pointcut pointcut)
Specify the pointcut targeting the advice.
String toString()
[Expand]
Inherited Methods
From class org.springframework.aop.support.AbstractGenericPointcutAdvisor
From class org.springframework.aop.support.AbstractPointcutAdvisor
From class java.lang.Object
From interface org.springframework.aop.Advisor
From interface org.springframework.aop.PointcutAdvisor
From interface org.springframework.core.Ordered

Public Constructors

public DefaultPointcutAdvisor ()

Create an empty 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)

Create a DefaultPointcutAdvisor that matches all methods.

Pointcut.TRUE will be used as Pointcut.

Parameters
advice the Advice to use

public DefaultPointcutAdvisor (Pointcut pointcut, Advice advice)

Create a DefaultPointcutAdvisor, specifying Pointcut and Advice.

Parameters
pointcut the Pointcut targeting the Advice
advice the Advice to run when Pointcut matches

Public Methods

public Pointcut getPointcut ()

public void setPointcut (Pointcut pointcut)

Specify the pointcut targeting the advice.

Default is Pointcut.TRUE.

public String toString ()