Package org.springframework.aop.support
Class Pointcuts
java.lang.Object
org.springframework.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.
- Author:
- Rod Johnson, Juergen Hoeller
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic 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 PointcutMatch all methods that either (or both) of the given pointcuts matches.
- 
Field Details- 
SETTERSPointcut matching all bean property setters, in any class.
- 
GETTERSPointcut matching all bean property getters, in any class.
 
- 
- 
Constructor Details- 
Pointcutspublic Pointcuts()
 
- 
- 
Method Details- 
unionMatch all methods that either (or both) of the given pointcuts matches.- Parameters:
- pc1- the first Pointcut
- pc2- the second Pointcut
- Returns:
- a distinct Pointcut that matches all methods that either of the given Pointcuts matches
 
- 
intersectionMatch all methods that both the given pointcuts match.- Parameters:
- pc1- the first Pointcut
- pc2- the second Pointcut
- Returns:
- a distinct Pointcut that matches all methods that both of the given Pointcuts match
 
- 
matchespublic static boolean matches(Pointcut pointcut, Method method, Class<?> targetClass, Object... args) Perform the least expensive check for a pointcut match.- Parameters:
- pointcut- the pointcut to match
- method- the candidate method
- targetClass- the target class
- args- arguments to the method
- Returns:
- whether there's a runtime match
 
 
-