|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.aop.support.Pointcuts
public abstract class 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.
Field Summary | |
---|---|
static Pointcut |
GETTERS
Pointcut matching all bean property getters, in any class |
static Pointcut |
SETTERS
Pointcut matching all bean property setters, in any class |
Constructor Summary | |
---|---|
Pointcuts()
|
Method Summary | |
---|---|
static Pointcut |
intersection(Pointcut pc1,
Pointcut pc2)
Match all methods that both the given pointcuts match. |
static boolean |
matches(Pointcut pointcut,
Method method,
Class targetClass,
Object[] args)
Perform the least expensive check for a pointcut match. |
static Pointcut |
union(Pointcut pc1,
Pointcut pc2)
Match all methods that either (or both) of the given pointcuts matches. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Pointcut SETTERS
public static final Pointcut GETTERS
Constructor Detail |
---|
public Pointcuts()
Method Detail |
---|
public static Pointcut union(Pointcut pc1, Pointcut pc2)
pc1
- the first Pointcutpc2
- the second Pointcut
public static Pointcut intersection(Pointcut pc1, Pointcut pc2)
pc1
- the first Pointcutpc2
- the second Pointcut
public static boolean matches(Pointcut pointcut, Method method, Class targetClass, Object[] args)
pointcut
- the pointcut to matchmethod
- the candidate methodtargetClass
- the target classargs
- arguments to the method
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |