org.springframework.aop.support
Class JdkRegexpMethodPointcut
java.lang.Object
   org.springframework.aop.support.StaticMethodMatcher
org.springframework.aop.support.StaticMethodMatcher
       org.springframework.aop.support.StaticMethodMatcherPointcut
org.springframework.aop.support.StaticMethodMatcherPointcut
           org.springframework.aop.support.AbstractRegexpMethodPointcut
org.springframework.aop.support.AbstractRegexpMethodPointcut
               org.springframework.aop.support.JdkRegexpMethodPointcut
org.springframework.aop.support.JdkRegexpMethodPointcut
- All Implemented Interfaces: 
- Serializable, MethodMatcher, Pointcut
- public class JdkRegexpMethodPointcut 
- extends AbstractRegexpMethodPointcut
Regular expression pointcut based on the java.util.regex package.
 Supports the following JavaBean properties:
 
 - pattern: regular expression for the fully-qualified method names to match
 
- patterns: alternative property taking a String array of patterns. The result will
 be the union of these patterns.
 
Note: the regular expressions must be a match. For example,
 .*get.* will match com.mycom.Foo.getBar().
 get.* will not.
- Since:
- 1.1
- Author:
- Dmitriy Kopylenko, Rob Harrop
- See Also:
- Serialized Form
 
| Fields inherited from interface org.springframework.aop.Pointcut | 
| TRUE | 
 
 
 
 
| Methods inherited from class org.springframework.aop.support.AbstractRegexpMethodPointcut | 
| equals, getExcludedPatterns, getPatterns, hashCode, matches, matchesPattern, setExcludedPattern, setExcludedPatterns, setPattern, setPatterns, toString | 
 
 
 
 
JdkRegexpMethodPointcut
public JdkRegexpMethodPointcut()
initPatternRepresentation
protected void initPatternRepresentation(String[] patterns)
                                  throws PatternSyntaxException
- Initialize Patternsfrom the suppliedString[].
 
- 
- Specified by:
- initPatternRepresentationin class- AbstractRegexpMethodPointcut
 
- 
- Parameters:
- patterns- the patterns to initialize
- Throws:
- PatternSyntaxException
 
initExcludedPatternRepresentation
protected void initExcludedPatternRepresentation(String[] excludedPatterns)
                                          throws PatternSyntaxException
- Initialize exclusion Patternsfrom the suppliedString[].
 
- 
- Specified by:
- initExcludedPatternRepresentationin class- AbstractRegexpMethodPointcut
 
- 
- Parameters:
- excludedPatterns- the patterns to initialize
- Throws:
- PatternSyntaxException
 
matches
protected boolean matches(String pattern,
                          int patternIndex)
- Returns trueif thePatternat indexpatternIndexmatches the supplied candidateString.
 
- 
- Specified by:
- matchesin class- AbstractRegexpMethodPointcut
 
- 
- Parameters:
- pattern-- Stringpattern to match
- patternIndex- index of pattern from 0
- Returns:
- trueif there is a match, else- false.
 
matchesExclusion
protected boolean matchesExclusion(String candidate,
                                   int patternIndex)
- Returns trueif the exclusionPatternat indexpatternIndexmatches the supplied candidateString.
 
- 
- Specified by:
- matchesExclusionin class- AbstractRegexpMethodPointcut
 
- 
- Parameters:
- candidate-- Stringpattern to match.
- patternIndex- index of pattern starting from 0.
- Returns:
- trueif there is a match, else- false.
 
Copyright © 2002-2008 The Spring Framework.