当前页面:
在线文档首页 >
Spring Framework 2.1.0 API 文档英文版
JdkRegexpMethodPointcut (Spring Framework API 2.1) - Spring Framework 2.1.0 API 文档英文版
org.springframework.aop.support
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
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 |
JdkRegexpMethodPointcut
public JdkRegexpMethodPointcut()
initPatternRepresentation
protected void initPatternRepresentation(String[] patterns)
throws PatternSyntaxException
- Initialize
Patterns
from the supplied String[]
.
- Specified by:
initPatternRepresentation
in class AbstractRegexpMethodPointcut
- Parameters:
patterns
- the patterns to initialize
- Throws:
PatternSyntaxException
matches
protected boolean matches(String pattern,
int patternIndex)
- Returns
true
if the Pattern
at index patternIndex
matches the supplied candidate String
.
- Specified by:
matches
in class AbstractRegexpMethodPointcut
- Parameters:
pattern
- String
pattern to matchpatternIndex
- index of pattern from 0
- Returns:
true
if there is a match, else false
.
initExcludedPatternRepresentation
protected void initExcludedPatternRepresentation(String[] excludedPatterns)
throws IllegalArgumentException
- Initialize exclusion
Patterns
from the supplied String[]
.
- Specified by:
initExcludedPatternRepresentation
in class AbstractRegexpMethodPointcut
- Throws:
IllegalArgumentException
matchesExclusion
protected boolean matchesExclusion(String candidate,
int patternIndex)
- Returns
true
if the exclusion Pattern
at index patternIndex
matches the supplied candidate String
.
- Specified by:
matchesExclusion
in class AbstractRegexpMethodPointcut
- Parameters:
candidate
- String
pattern to match.patternIndex
- index of pattern starting from 0.
- Returns:
true
if there is a match, else false
.
Copyright © 2002-2007 The Spring Framework.