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

All Implemented Interfaces:
    Ordered, PointcutAdvisor, Serializable

Convenient class for regexp method pointcuts that hold an Advice, making them an org.springframework.aop.Advisor .

Configure this class using the "pattern" and "patterns" pass-through properties. These are analogous to the pattern and patterns properties of AbstractRegexpMethodPointcut .

Can delegate to any AbstractRegexpMethodPointcut subclass. By default, JdkRegexpMethodPointcut will be used. To choose a specific one, override the #createPointcut method.

Constructor:
 public RegexpMethodPointcutAdvisor() 
 public RegexpMethodPointcutAdvisor(Advice advice) 
    Create a RegexpMethodPointcutAdvisor for the given advice. The pattern still needs to be specified afterwards.
 public RegexpMethodPointcutAdvisor(String pattern,
    Advice advice) 
    Create a RegexpMethodPointcutAdvisor for the given advice.
    Parameters:
    pattern - the pattern to use
    advice - the advice to use
 public RegexpMethodPointcutAdvisor(String[] patterns,
    Advice advice) 
    Create a RegexpMethodPointcutAdvisor for the given advice.
    Parameters:
    patterns - the patterns to use
    advice - the advice to use
Method from org.springframework.aop.support.RegexpMethodPointcutAdvisor Summary:
createPointcut,   getPointcut,   setPattern,   setPatterns,   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.RegexpMethodPointcutAdvisor Detail:
 protected AbstractRegexpMethodPointcut createPointcut() 
 public Pointcut getPointcut() 
    Initialize the singleton Pointcut held within this Advisor.
 public  void setPattern(String pattern) 
    Set the regular expression defining methods to match.

    Use either this method or #setPatterns , not both.

 public  void setPatterns(String[] patterns) 
    Set the regular expressions defining methods to match. To be passed through to the pointcut implementation.

    Matching will be the union of all these; if any of the patterns matches, the pointcut matches.

 public String toString()