Class JdkRegexpMethodPointcut
java.lang.Object
org.springframework.aop.support.StaticMethodMatcher
org.springframework.aop.support.StaticMethodMatcherPointcut
org.springframework.aop.support.AbstractRegexpMethodPointcut
org.springframework.aop.support.JdkRegexpMethodPointcut
- All Implemented Interfaces:
- Serializable, MethodMatcher, Pointcut
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:
- 
Field SummaryFields inherited from interface MethodMatcherTRUE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidinitExcludedPatternRepresentation(String[] excludedPatterns) Initialize exclusionPatternsfrom the suppliedString[].protected voidinitPatternRepresentation(String[] patterns) InitializePatternsfrom the suppliedString[].protected booleanprotected booleanmatchesExclusion(String candidate, int patternIndex) Methods inherited from class AbstractRegexpMethodPointcutequals, getExcludedPatterns, getPatterns, hashCode, matches, matchesPattern, setExcludedPattern, setExcludedPatterns, setPattern, setPatterns, toStringMethods inherited from class StaticMethodMatcherPointcutgetClassFilter, getMethodMatcher, setClassFilterMethods inherited from class StaticMethodMatcherisRuntime, matches
- 
Constructor Details- 
JdkRegexpMethodPointcutpublic JdkRegexpMethodPointcut()
 
- 
- 
Method Details- 
initPatternRepresentationInitializePatternsfrom the suppliedString[].- Specified by:
- initPatternRepresentationin class- AbstractRegexpMethodPointcut
- Parameters:
- patterns- the patterns to initialize
- Throws:
- PatternSyntaxException
 
- 
initExcludedPatternRepresentationprotected void initExcludedPatternRepresentation(String[] excludedPatterns) throws PatternSyntaxException Initialize exclusionPatternsfrom the suppliedString[].- Specified by:
- initExcludedPatternRepresentationin class- AbstractRegexpMethodPointcut
- Parameters:
- excludedPatterns- the patterns to initialize
- Throws:
- PatternSyntaxException
 
- 
matches- Specified by:
- matchesin class- AbstractRegexpMethodPointcut
- Parameters:
- pattern- the- Stringpattern to match
- patternIndex- index of pattern (starting from 0)
- Returns:
- trueif there is a match,- falseotherwise
 
- 
matchesExclusion- Specified by:
- matchesExclusionin class- AbstractRegexpMethodPointcut
- Parameters:
- candidate- the- Stringpattern to match
- patternIndex- index of pattern (starting from 0)
- Returns:
- trueif there is a match,- falseotherwise
 
 
-