spring-framework / org.springframework.aop.support / DefaultPointcutAdvisor

DefaultPointcutAdvisor

open class DefaultPointcutAdvisor : AbstractGenericPointcutAdvisor, Serializable

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

Author
Juergen Hoeller

See Also
#setPointcut#setAdvice

Constructors

<init>

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.

DefaultPointcutAdvisor(advice: Advice)

Create a DefaultPointcutAdvisor that matches all methods.

Pointcut.TRUE will be used as Pointcut.

DefaultPointcutAdvisor(pointcut: Pointcut, advice: Advice)

Create a DefaultPointcutAdvisor, specifying Pointcut and Advice.

Functions

getPointcut

open fun getPointcut(): Pointcut

setPointcut

open fun setPointcut(pointcut: Pointcut): Unit

Specify the pointcut targeting the advice.

Default is Pointcut.TRUE.

toString

open fun toString(): String