spring-framework / org.springframework.aop.support / DefaultPointcutAdvisor / <init>

<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.

Parameters

advice - the Advice to use

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