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 $
| Method Summary |
String | toString() |
boolean | under(Class clazz) |
boolean | under(Class clazz, String methodName) Matches whole method name |
boolean | underToken(String token) Leave it up to the caller to decide what matches. |
ControlFlowFactory.Jdk14ControlFlow
public ControlFlowFactory.Jdk14ControlFlow()
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:
to Class java.lang.StackTraceElement