Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » aop » support » [javadoc | source]
org.springframework.aop.support
public class: ControlFlowPointcut [javadoc | source]
java.lang.Object
   org.springframework.aop.support.ControlFlowPointcut

All Implemented Interfaces:
    Serializable, ClassFilter, Pointcut, MethodMatcher

Pointcut and method matcher for use in simple cflow-style pointcut. Note that evaluating such pointcuts is 10-15 times slower than evaluating normal pointcuts, but they are useful in some cases.
Constructor:
 public ControlFlowPointcut(Class clazz) 
    Construct a new pointcut that matches all control flows below that class.
    Parameters:
    clazz - the clazz
 public ControlFlowPointcut(Class clazz,
    String methodName) 
    Construct a new pointcut that matches all calls below the given method in the given class. If the method name is null, matches all control flows below that class.
    Parameters:
    clazz - the clazz
    methodName - the name of the method
Method from org.springframework.aop.support.ControlFlowPointcut Summary:
equals,   getClassFilter,   getEvaluations,   getMethodMatcher,   hashCode,   isRuntime,   matches,   matches,   matches
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.aop.support.ControlFlowPointcut Detail:
 public boolean equals(Object other) 
 public ClassFilter getClassFilter() 
 public int getEvaluations() 
    It's useful to know how many times we've fired, for optimization.
 public MethodMatcher getMethodMatcher() 
 public int hashCode() 
 public boolean isRuntime() 
 public boolean matches(Class clazz) 
    Subclasses can override this for greater filtering (and performance).
 public boolean matches(Method method,
    Class targetClass) 
    Subclasses can override this if it's possible to filter out some candidate classes.
 public boolean matches(Method method,
    Class targetClass,
    Object[] args)