org.springframework.aop.support
Class Pointcuts

java.lang.Object
  extended by org.springframework.aop.support.Pointcuts

public abstract class Pointcuts
extends Object

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

Field Summary
static Pointcut GETTERS
          Pointcut matching all getters, in any class
static Pointcut SETTERS
          Pointcut matching all setters, in any class
 
Constructor Summary
Pointcuts()
           
 
Method Summary
static boolean equals(Pointcut a, Pointcut b)
           
static Pointcut intersection(Pointcut a, Pointcut b)
          Match all methods that both the given pointcuts match
static boolean matches(Pointcut pc, Method method, Class targetClass, Object[] arguments)
          Perform the least expensive check for a match.
static Pointcut union(Pointcut a, Pointcut b)
          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

SETTERS

public static final Pointcut SETTERS
Pointcut matching all setters, in any class


GETTERS

public static final Pointcut GETTERS
Pointcut matching all getters, in any class

Constructor Detail

Pointcuts

public Pointcuts()
Method Detail

union

public static Pointcut union(Pointcut a,
                             Pointcut b)
Match all methods that either (or both) of the given pointcuts matches

Parameters:
a - input pointcut
b - input pointput
Returns:
a distinct Pointcut that matches all methods that either of the given pointcuts matches

intersection

public static Pointcut intersection(Pointcut a,
                                    Pointcut b)
Match all methods that both the given pointcuts match

Parameters:
a - input pointcut
b - input pointput
Returns:
a distinct Pointcut that matches all methods that both the given pointcuts match

matches

public static boolean matches(Pointcut pc,
                              Method method,
                              Class targetClass,
                              Object[] arguments)
Perform the least expensive check for a match.


equals

public static boolean equals(Pointcut a,
                             Pointcut b)


Copyright (c) 2002-2007 The Spring Framework Project.