These methods are particularly useful for composing pointcuts using the union and intersection methods.
| Modifier and Type | Class and Description |
|---|---|
| private static class | Pointcuts.
Pointcut implementation that matches bean property getters. |
| private static class | Pointcuts.
Pointcut implementation that matches bean property setters. |
| Modifier and Type | Field and Description |
|---|---|
| public static final Pointcut | GETTERS
Pointcut matching all bean property getters, in any class. |
| public static final Pointcut | SETTERS
Pointcut matching all bean property setters, in any class. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Pointcut | Returns: a distinct Pointcut that matches all methods that both of the given Pointcuts matchthe first Pointcut pc1, Pointcut the second Pointcut pc2)Match all methods that both the given pointcuts match. |
| public static boolean | |
| public static Pointcut |
| GETTERS | back to summary |
|---|---|
| public static final Pointcut GETTERS Pointcut matching all bean property getters, in any class. | |
| SETTERS | back to summary |
|---|---|
| public static final Pointcut SETTERS Pointcut matching all bean property setters, in any class. | |
| Pointcuts | back to summary |
|---|---|
| public Pointcuts() | |
| intersection | back to summary |
|---|---|
| public static Pointcut intersection(Pointcut pc1, Pointcut pc2) Match all methods that both the given pointcuts match. | |
| matches | back to summary |
|---|---|
| public static boolean matches(Pointcut pointcut, Method method, Class<?> targetClass, Object... args) Perform the least expensive check for a pointcut match. | |
| union | back to summary |
|---|---|
| public static Pointcut union(Pointcut pc1, Pointcut pc2) Match all methods that either (or both) of the given pointcuts matches. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Pointcuts. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | matches(Method
the candidate method method, Class<?> the target class targetClass)Implements org. Perform static checking to determine whether the given method matches. |
| private Object | |
| public String |
| INSTANCE | back to summary |
|---|---|
| public static final Pointcuts. | |
| GetterPointcut | back to summary |
|---|---|
| private GetterPointcut() | |
| matches | back to summary |
|---|---|
| public boolean matches(Method method, Class<?> targetClass) Implements org. Doc from org. Perform static checking to determine whether the given method matches. If this method returns | |
| readResolve | back to summary |
|---|---|
| private Object readResolve() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Pointcuts. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | matches(Method
the candidate method method, Class<?> the target class targetClass)Implements org. Perform static checking to determine whether the given method matches. |
| private Object | |
| public String |
| INSTANCE | back to summary |
|---|---|
| public static final Pointcuts. | |
| SetterPointcut | back to summary |
|---|---|
| private SetterPointcut() | |
| matches | back to summary |
|---|---|
| public boolean matches(Method method, Class<?> targetClass) Implements org. Doc from org. Perform static checking to determine whether the given method matches. If this method returns | |
| readResolve | back to summary |
|---|---|
| private Object readResolve() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |