类 ComposablePointcut
java.lang.Object
infra.aop.support.ComposablePointcut
- 所有已实现的接口:
Pointcut,Serializable
Convenient class for building up pointcuts.
All methods return ComposablePointcut, so we can use concise idioms
like in the following example.
Pointcut pc = new ComposablePointcut()
.union(classFilter)
.intersection(methodMatcher)
.intersection(pointcut);- 从以下版本开始:
- 3.0 2021/2/1 18:18
- 作者:
- Rod Johnson, Juergen Hoeller, Rob Harrop, Harry Yang
- 另请参阅:
-
嵌套类概要
从接口继承的嵌套类/接口 infra.aop.Pointcut
Pointcut.GetterPointcut, Pointcut.SetterPointcut -
字段概要
字段 -
构造器概要
构造器构造器说明Create a default ComposablePointcut, withClassFilter.TRUEandMethodMatcher.TRUE.ComposablePointcut(ClassFilter classFilter) Create a ComposablePointcut for the given ClassFilter, withMethodMatcher.TRUE.ComposablePointcut(ClassFilter classFilter, MethodMatcher methodMatcher) Create a ComposablePointcut for the given ClassFilter and MethodMatcher.ComposablePointcut(MethodMatcher methodMatcher) Create a ComposablePointcut for the given MethodMatcher, withClassFilter.TRUE.ComposablePointcut(Pointcut pointcut) Create a ComposablePointcut based on the given Pointcut. -
方法概要
修饰符和类型方法说明booleanReturn the ClassFilter for this pointcut.Return the MethodMatcher for this pointcut.inthashCode()intersection(ClassFilter other) Apply an intersection with the given ClassFilter.intersection(MethodMatcher other) Apply an intersection with the given MethodMatcher.intersection(Pointcut other) Apply an intersection with the given Pointcut.toString()union(ClassFilter other) Apply a union with the given ClassFilter.union(MethodMatcher other) Apply a union with the given MethodMatcher.Apply a union with the given Pointcut.
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID- 另请参阅:
-
classFilter
-
methodMatcher
-
-
构造器详细资料
-
ComposablePointcut
public ComposablePointcut()Create a default ComposablePointcut, withClassFilter.TRUEandMethodMatcher.TRUE. -
ComposablePointcut
Create a ComposablePointcut based on the given Pointcut.- 参数:
pointcut- the original Pointcut
-
ComposablePointcut
Create a ComposablePointcut for the given ClassFilter, withMethodMatcher.TRUE.- 参数:
classFilter- the ClassFilter to use
-
ComposablePointcut
Create a ComposablePointcut for the given MethodMatcher, withClassFilter.TRUE.- 参数:
methodMatcher- the MethodMatcher to use
-
ComposablePointcut
Create a ComposablePointcut for the given ClassFilter and MethodMatcher.- 参数:
classFilter- the ClassFilter to usemethodMatcher- the MethodMatcher to use
-
-
方法详细资料
-
union
Apply a union with the given ClassFilter.- 参数:
other- the ClassFilter to apply a union with- 返回:
- this composable pointcut (for call chaining)
-
intersection
Apply an intersection with the given ClassFilter.- 参数:
other- the ClassFilter to apply an intersection with- 返回:
- this composable pointcut (for call chaining)
-
union
Apply a union with the given MethodMatcher.- 参数:
other- the MethodMatcher to apply a union with- 返回:
- this composable pointcut (for call chaining)
-
intersection
Apply an intersection with the given MethodMatcher.- 参数:
other- the MethodMatcher to apply an intersection with- 返回:
- this composable pointcut (for call chaining)
-
union
Apply a union with the given Pointcut.Note that for a Pointcut union, methods will only match if their original ClassFilter (from the originating Pointcut) matches as well. MethodMatchers and ClassFilters from different Pointcuts will never get interleaved with each other.
- 参数:
other- the Pointcut to apply a union with- 返回:
- this composable pointcut (for call chaining)
-
intersection
Apply an intersection with the given Pointcut.- 参数:
other- the Pointcut to apply an intersection with- 返回:
- this composable pointcut (for call chaining)
-
getClassFilter
从接口复制的说明:PointcutReturn the ClassFilter for this pointcut.- 指定者:
getClassFilter在接口中Pointcut- 返回:
- the ClassFilter (never
null)
-
getMethodMatcher
从接口复制的说明:PointcutReturn the MethodMatcher for this pointcut.- 指定者:
getMethodMatcher在接口中Pointcut- 返回:
- the MethodMatcher (never
null)
-
equals
-
hashCode
public int hashCode() -
toString
-