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:DefaultPointcutAdvisor.setPointcut See Also:DefaultPointcutAdvisor.setAdvice
Advice must be set before use using setter methods.
Pointcut will normally be set also, but defaults to Pointcut.TRUE.
DefaultPointcutAdvisor
public DefaultPointcutAdvisor(Advice advice)(Code)
Create a DefaultPointcutAdvisor that matches all methods.
Pointcut.TRUE will be used as Pointcut.
Parameters: advice - the Advice to use
DefaultPointcutAdvisor
public DefaultPointcutAdvisor(Pointcut pointcut, Advice advice)(Code)
Create a DefaultPointcutAdvisor, specifying Pointcut and Advice.
Parameters: pointcut - the Pointcut targeting the Advice Parameters: advice - the Advice to run when Pointcut matches