类 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.regexpackage. 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 voidinitExcludedPatternRepresentation(String[] excludedPatterns)Initialize exclusionPatternsfrom the suppliedString[].protected voidinitPatternRepresentation(String[] patterns)InitializePatternsfrom the suppliedString[].protected booleanmatches(String pattern, int patternIndex)protected booleanmatchesExclusion(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
InitializePatternsfrom the suppliedString[].- 指定者:
initPatternRepresentation在类中AbstractRegexpMethodPointcut- 参数:
patterns- the patterns to initialize- 抛出:
PatternSyntaxException
initExcludedPatternRepresentation
protected void initExcludedPatternRepresentation(String[] excludedPatterns) throws PatternSyntaxException
Initialize exclusionPatternsfrom the suppliedString[].- 指定者:
initExcludedPatternRepresentation在类中AbstractRegexpMethodPointcut- 参数:
excludedPatterns- the patterns to initialize- 抛出:
PatternSyntaxException
matches
protected boolean matches(String pattern, int patternIndex)
- 指定者:
matches在类中AbstractRegexpMethodPointcut- 参数:
pattern- theStringpattern to matchpatternIndex- index of pattern (starting from 0)- 返回:
trueif there is a match,falseotherwise
matchesExclusion
protected boolean matchesExclusion(String candidate, int patternIndex)
- 指定者:
matchesExclusion在类中AbstractRegexpMethodPointcut- 参数:
candidate- theStringpattern to matchpatternIndex- index of pattern (starting from 0)- 返回:
trueif there is a match,falseotherwise