类 JdkRegexpMethodPointcut
- java.lang.Object
- org.springframework.aop.support.StaticMethodMatcher
- org.springframework.aop.support.StaticMethodMatcherPointcut
- org.springframework.aop.support.AbstractRegexpMethodPointcut
- org.springframework.aop.support.JdkRegexpMethodPointcut
- 所有已实现的接口:
Serializable
,MethodMatcher
,Pointcut
public class JdkRegexpMethodPointcut extends AbstractRegexpMethodPointcut
Regular expression pointcut based on thejava.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.- 从以下版本开始:
- 1.1
- 作者:
- Dmitriy Kopylenko, Rob Harrop
- 另请参阅:
- 序列化表格
字段概要
从接口继承的字段 org.springframework.aop.MethodMatcher
TRUE
构造器概要
构造器 构造器 说明 JdkRegexpMethodPointcut()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected void
initExcludedPatternRepresentation(String[] excludedPatterns)
Initialize exclusionPatterns
from the suppliedString[]
.protected void
initPatternRepresentation(String[] patterns)
InitializePatterns
from the suppliedString[]
.protected boolean
matches(String pattern, int patternIndex)
protected boolean
matchesExclusion(String candidate, int patternIndex)
从类继承的方法 org.springframework.aop.support.AbstractRegexpMethodPointcut
equals, getExcludedPatterns, getPatterns, hashCode, matches, matchesPattern, setExcludedPattern, setExcludedPatterns, setPattern, setPatterns, toString
从类继承的方法 org.springframework.aop.support.StaticMethodMatcherPointcut
getClassFilter, getMethodMatcher, setClassFilter
从类继承的方法 org.springframework.aop.support.StaticMethodMatcher
isRuntime, matches
构造器详细资料
JdkRegexpMethodPointcut
public JdkRegexpMethodPointcut()
方法详细资料
initPatternRepresentation
protected void initPatternRepresentation(String[] patterns) throws PatternSyntaxException
InitializePatterns
from the suppliedString[]
.- 指定者:
initPatternRepresentation
在类中AbstractRegexpMethodPointcut
- 参数:
patterns
- the patterns to initialize- 抛出:
PatternSyntaxException
initExcludedPatternRepresentation
protected void initExcludedPatternRepresentation(String[] excludedPatterns) throws PatternSyntaxException
Initialize exclusionPatterns
from the suppliedString[]
.- 指定者:
initExcludedPatternRepresentation
在类中AbstractRegexpMethodPointcut
- 参数:
excludedPatterns
- the patterns to initialize- 抛出:
PatternSyntaxException
matches
protected boolean matches(String pattern, int patternIndex)
- 指定者:
matches
在类中AbstractRegexpMethodPointcut
- 参数:
pattern
- theString
pattern to matchpatternIndex
- index of pattern (starting from 0)- 返回:
true
if there is a match,false
otherwise
matchesExclusion
protected boolean matchesExclusion(String candidate, int patternIndex)
- 指定者:
matchesExclusion
在类中AbstractRegexpMethodPointcut
- 参数:
candidate
- theString
pattern to matchpatternIndex
- index of pattern (starting from 0)- 返回:
true
if there is a match,false
otherwise