程序包 infra.aop
接口 Pointcut
- 所有已知子接口:
ExpressionPointcut
- 所有已知实现类:
AbstractExpressionPointcut,AbstractRegexpMethodPointcut,AnnotationMatchingPointcut,AspectJExpressionPointcut,ComposablePointcut,ControlFlowPointcut,DynamicMethodMatcherPointcut,InstantiationModelAwarePointcutAdvisorImpl.PerTargetInstantiationModelPointcut,JdkRegexpMethodPointcut,NameMatchMethodPointcut,Pointcut.GetterPointcut,Pointcut.SetterPointcut,StaticMethodMatcherPointcut,StaticMethodMatcherPointcutAdvisor,TruePointcut
public interface Pointcut
Core pointcut abstraction.
A pointcut is composed of a ClassFilter and a MethodMatcher.
Both these basic terms and a Pointcut itself can be combined to build up combinations
(e.g. through ComposablePointcut).
- 从以下版本开始:
- 3.0
- 作者:
- Rod Johnson, TODAY 2021/2/1 18:12
- 另请参阅:
-
嵌套类概要
嵌套类修饰符和类型接口说明static classPointcut implementation that matches bean property getters.static classPointcut implementation that matches bean property setters. -
字段概要
字段 -
方法概要
修饰符和类型方法说明Return the ClassFilter for this pointcut.Return the MethodMatcher for this pointcut.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.
-
字段详细资料
-
TRUE
Canonical Pointcut instance that always matches. -
SETTERS
Pointcut matching all bean property setters, in any class. -
GETTERS
Pointcut matching all bean property getters, in any class.
-
-
方法详细资料
-
getClassFilter
ClassFilter getClassFilter()Return the ClassFilter for this pointcut.- 返回:
- the ClassFilter (never
null)
-
getMethodMatcher
MethodMatcher getMethodMatcher()Return the MethodMatcher for this pointcut.- 返回:
- the MethodMatcher (never
null)
-
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
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
-