类 Pointcuts
java.lang.Object
cn.taketoday.aop.support.Pointcuts
Pointcut constants for matching getters and setters,
and static methods useful for manipulating and evaluating pointcuts.
These methods are particularly useful for composing pointcuts using the union and intersection methods.
- 从以下版本开始:
- 3.0
- 作者:
- Rod Johnson, Juergen Hoeller, TODAY 2021/2/1 18:23
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Pointcutintersection(Pointcut pc1, Pointcut pc2) Match all methods that both the given pointcuts match.static booleanPerform the least expensive check for a pointcut match.static booleanmatches(Pointcut pointcut, MethodInvocation invocation) Perform the least expensive check for a pointcut match.static PointcutMatch all methods that either (or both) of the given pointcuts matches.
-
字段详细资料
-
SETTERS
Pointcut matching all bean property setters, in any class. -
GETTERS
Pointcut matching all bean property getters, in any class.
-
-
构造器详细资料
-
Pointcuts
public Pointcuts()
-
-
方法详细资料
-
union
Match all methods that either (or both) of the given pointcuts matches.- 参数:
pc1- the first Pointcutpc2- the second Pointcut- 返回:
- a distinct Pointcut that matches all methods that either of the given Pointcuts matches
-
intersection
Match all methods that both the given pointcuts match.- 参数:
pc1- the first Pointcutpc2- the second Pointcut- 返回:
- a distinct Pointcut that matches all methods that both of the given Pointcuts match
-
matches
Perform the least expensive check for a pointcut match.- 参数:
pointcut- the pointcut to matchinvocation- runtime invocation contains the candidate method and target class, arguments to the method- 返回:
- whether there's a runtime match
-
matches
public static boolean matches(Pointcut pointcut, Method method, Class<?> targetClass, Object... args) Perform the least expensive check for a pointcut match.- 参数:
pointcut- the pointcut to matchmethod- the candidate methodtargetClass- the target classargs- arguments to the method- 返回:
- whether there's a runtime match
-