Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » aop » support » [javadoc | source]
org.springframework.aop.support
abstract public class: AbstractRegexpMethodPointcut [javadoc | source]
java.lang.Object
   org.springframework.aop.support.StaticMethodMatcher
      org.springframework.aop.support.StaticMethodMatcherPointcut
         org.springframework.aop.support.AbstractRegexpMethodPointcut

All Implemented Interfaces:
    Serializable, Pointcut, MethodMatcher

Direct Known Subclasses:
    Perl5RegexpMethodPointcut, JdkRegexpMethodPointcut

Abstract base regular expression pointcut bean. JavaBean properties are:

Note: the regular expressions must be a match. For example, .*get.* will match com.mycom.Foo.getBar(). get.* will not.

This base class is serializable. Subclasses should declare all fields transient - the initPatternRepresentation method in this class will be invoked again on the client side on deserialization.

Method from org.springframework.aop.support.AbstractRegexpMethodPointcut Summary:
equals,   getExcludedPatterns,   getPatterns,   hashCode,   initExcludedPatternRepresentation,   initPatternRepresentation,   matches,   matches,   matchesExclusion,   matchesPattern,   setExcludedPattern,   setExcludedPatterns,   setPattern,   setPatterns,   toString
Methods from org.springframework.aop.support.StaticMethodMatcherPointcut:
getClassFilter,   getMethodMatcher,   setClassFilter
Methods from org.springframework.aop.support.StaticMethodMatcher:
isRuntime,   matches
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.aop.support.AbstractRegexpMethodPointcut Detail:
 public boolean equals(Object other) 
 public String[] getExcludedPatterns() 
    Returns the regular expressions for exclusion matching.
 public String[] getPatterns() 
    Return the regular expressions for method matching.
 public int hashCode() 
 abstract protected  void initExcludedPatternRepresentation(String[] excludedPatterns) throws IllegalArgumentException
 abstract protected  void initPatternRepresentation(String[] patterns) throws IllegalArgumentException
    Subclasses must implement this to initialize regexp pointcuts. Can be invoked multiple times.

    This method will be invoked from the setPatterns method, and also on deserialization.

 public boolean matches(Method method,
    Class targetClass) 
    Try to match the regular expression against the fully qualified name of the target class as well as against the method's declaring class, plus the name of the method.
 abstract protected boolean matches(String pattern,
    int patternIndex)
    Does the pattern at the given index match this string?
 abstract protected boolean matchesExclusion(String pattern,
    int patternIndex)
    Does the exclusion pattern at the given index match this string?
 protected boolean matchesPattern(String signatureString) 
    Match the specified candidate against the configured patterns.
 public  void setExcludedPattern(String excludedPattern) 
    Convenience method when we have only a single exclusion pattern. Use either this method or #setExcludedPatterns , not both.
 public  void setExcludedPatterns(String[] excludedPatterns) 
    Set the regular expressions defining methods to match for exclusion. Matching will be the union of all these; if any match, the pointcut matches.
 public  void setPattern(String pattern) 
    Convenience method when we have only a single pattern. Use either this method or #setPatterns , not both.
 public  void setPatterns(String[] patterns) 
    Set the regular expressions defining methods to match. Matching will be the union of all these; if any match, the pointcut matches.
 public String toString()