类 RegexpMethodPointcutAdvisor
java.lang.Object
infra.core.OrderedSupport
infra.aop.support.AbstractPointcutAdvisor
infra.aop.support.AbstractGenericPointcutAdvisor
infra.aop.support.RegexpMethodPointcutAdvisor
- 所有已实现的接口:
Advisor,PointcutAdvisor,infra.core.Ordered,Serializable
Convenient class for regexp method pointcuts that hold an Advice,
making them an
Advisor.
Configure this class using the "pattern" and "patterns"
pass-through properties. These are analogous to the pattern
and patterns properties of AbstractRegexpMethodPointcut.
Can delegate to any AbstractRegexpMethodPointcut subclass.
By default, JdkRegexpMethodPointcut will be used. To choose
a specific one, override the createPointcut() method.
- 从以下版本开始:
- 4.0 2022/3/12 23:27
- 作者:
- Rod Johnson, Juergen Hoeller, Harry Yang
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型类说明private static classEmpty class used for a serializable monitor object. -
字段概要
字段从类继承的字段 infra.core.OrderedSupport
order从接口继承的字段 infra.aop.Advisor
EMPTY_ADVICE从接口继承的字段 infra.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
构造器概要
构造器构造器说明Create an empty RegexpMethodPointcutAdvisor.RegexpMethodPointcutAdvisor(String[] patterns, Advice advice) Create a RegexpMethodPointcutAdvisor for the given advice.RegexpMethodPointcutAdvisor(String pattern, Advice advice) Create a RegexpMethodPointcutAdvisor for the given advice.RegexpMethodPointcutAdvisor(Advice advice) Create a RegexpMethodPointcutAdvisor for the given advice. -
方法概要
修饰符和类型方法说明protected AbstractRegexpMethodPointcutCreate the actual pointcut: By default, aJdkRegexpMethodPointcutwill be used.Initialize the singleton Pointcut held within this Advisor.voidsetPattern(String pattern) Set the regular expression defining methods to match.voidsetPatterns(String... patterns) Set the regular expressions defining methods to match.toString()从类继承的方法 infra.aop.support.AbstractGenericPointcutAdvisor
getAdvice, setAdvice从类继承的方法 infra.aop.support.AbstractPointcutAdvisor
equals, getOrder, hashCode从类继承的方法 infra.core.OrderedSupport
setOrder从接口继承的方法 infra.aop.Advisor
isPerInstance
-
字段详细资料
-
patterns
-
pointcut
-
pointcutMonitor
-
-
构造器详细资料
-
RegexpMethodPointcutAdvisor
public RegexpMethodPointcutAdvisor()Create an empty RegexpMethodPointcutAdvisor. -
RegexpMethodPointcutAdvisor
Create a RegexpMethodPointcutAdvisor for the given advice. The pattern still needs to be specified afterwards.- 参数:
advice- the advice to use- 另请参阅:
-
RegexpMethodPointcutAdvisor
Create a RegexpMethodPointcutAdvisor for the given advice.- 参数:
pattern- the pattern to useadvice- the advice to use
-
RegexpMethodPointcutAdvisor
Create a RegexpMethodPointcutAdvisor for the given advice.- 参数:
patterns- the patterns to useadvice- the advice to use
-
-
方法详细资料
-
setPattern
Set the regular expression defining methods to match.Use either this method or
setPatterns(java.lang.String...), not both. -
setPatterns
Set the regular expressions defining methods to match. To be passed through to the pointcut implementation.Matching will be the union of all these; if any of the patterns matches, the pointcut matches.
-
getPointcut
Initialize the singleton Pointcut held within this Advisor. -
createPointcut
Create the actual pointcut: By default, aJdkRegexpMethodPointcutwill be used.- 返回:
- the Pointcut instance (never
null)
-
toString
-