org.springframework.core
Class ControlFlowFactory.Jdk14ControlFlow


static class ControlFlowFactory.Jdk14ControlFlow
implements ControlFlow

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

This implementation uses the StackTraceElement class introduced in Java 1.4.

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

Constructor Summary
ControlFlowFactory.Jdk14ControlFlow()
           

Method Summary
 StringtoString()
           
 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.Jdk14ControlFlow

public ControlFlowFactory.Jdk14ControlFlow()
Method Detail

toString

public String toString()

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.StackTraceElement