Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » aop » support » [javadoc | source]
org.springframework.aop.support
public class: DefaultPointcutAdvisor [javadoc | source]
java.lang.Object
   org.springframework.aop.support.AbstractPointcutAdvisor
      org.springframework.aop.support.AbstractGenericPointcutAdvisor
         org.springframework.aop.support.DefaultPointcutAdvisor

All Implemented Interfaces:
    Serializable, Ordered, PointcutAdvisor

Direct Known Subclasses:
    SyntheticInstantiationAdvisor

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.

Constructor:
 public DefaultPointcutAdvisor() 
 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
Method from org.springframework.aop.support.DefaultPointcutAdvisor Summary:
getPointcut,   setPointcut,   toString
Methods from org.springframework.aop.support.AbstractGenericPointcutAdvisor:
getAdvice,   setAdvice,   toString
Methods from org.springframework.aop.support.AbstractPointcutAdvisor:
equals,   getOrder,   hashCode,   isPerInstance,   setOrder
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.aop.support.DefaultPointcutAdvisor Detail:
 public Pointcut getPointcut() 
 public  void setPointcut(Pointcut pointcut) 
    Specify the pointcut targeting the advice.

    Default is Pointcut.TRUE.

 public String toString()