类 RegexpMethodPointcutAdvisor
java.lang.Object
cn.taketoday.core.OrderedSupport
cn.taketoday.aop.support.AbstractPointcutAdvisor
cn.taketoday.aop.support.AbstractGenericPointcutAdvisor
cn.taketoday.aop.support.RegexpMethodPointcutAdvisor
- 所有已实现的接口:
Advisor,PointcutAdvisor,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
- 另请参阅:
-
字段概要
从类继承的字段 cn.taketoday.core.OrderedSupport
order从接口继承的字段 cn.taketoday.aop.Advisor
EMPTY_ADVICE从接口继承的字段 cn.taketoday.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()从类继承的方法 cn.taketoday.aop.support.AbstractGenericPointcutAdvisor
getAdvice, setAdvice从类继承的方法 cn.taketoday.aop.support.AbstractPointcutAdvisor
equals, getOrder, hashCode, isPerInstance从类继承的方法 cn.taketoday.core.OrderedSupport
setOrder
-
构造器详细资料
-
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
-