org.springframework.core
Class ControlFlowFactory.Jdk13ControlFlow


static class ControlFlowFactory.Jdk13ControlFlow
implements ControlFlow

Java 1.3 version of utilities for cflow-style pointcuts. We can't rely on the Java 1.4 StackTraceElement class.

Note that such pointcuts are 10-15 times more expensive to evaluate under JDK 1.3 than other pointcuts, as they require analysis of the stack trace (through constructing a new throwable). However, they are useful in some cases.

Author:
Rod Johnson
Version: $Id: ControlFlowFactory.java,v 1.1 2004/02/02 11:22:31 jhoeller Exp $

Constructor Summary
ControlFlowFactory.Jdk13ControlFlow()
           

Method Summary
 booleanunder(Class clazz)
           
 booleanunder(Class clazz, String methodName)
          Matches whole method name
 booleanunderToken(String token)
          Leave it up to the caller to decide what matches.

Constructor Detail

ControlFlowFactory.Jdk13ControlFlow

public ControlFlowFactory.Jdk13ControlFlow()
Method Detail

under

public boolean under(Class clazz)

under

public boolean under(Class clazz, String methodName)
Matches whole method name
Parameters:
clazz
methodName
Returns:

underToken

public boolean underToken(String token)
Leave it up to the caller to decide what matches. Caller must understand stack trace format, so there's less abstraction.
Parameters:
token
Returns:

Association Links

to Class java.lang.String