org.springframework.core
Class ControlFlowFactory.Jdk13ControlFlow
java.lang.Object
org.springframework.core.ControlFlowFactory.Jdk13ControlFlow
- All Implemented Interfaces:
- ControlFlow
- Enclosing class:
- ControlFlowFactory
- static class ControlFlowFactory.Jdk13ControlFlow
- extends java.lang.Object
- 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
Method Summary |
boolean |
under(java.lang.Class clazz)
|
boolean |
under(java.lang.Class clazz,
java.lang.String methodName)
Matches whole method name. |
boolean |
underToken(java.lang.String token)
Leave it up to the caller to decide what matches.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ControlFlowFactory.Jdk13ControlFlow
public ControlFlowFactory.Jdk13ControlFlow()
under
public boolean under(java.lang.Class clazz)
- Specified by:
under
in interface ControlFlow
under
public boolean under(java.lang.Class clazz,
java.lang.String methodName)
- Matches whole method name.
- Specified by:
under
in interface ControlFlow
underToken
public boolean underToken(java.lang.String token)
- Leave it up to the caller to decide what matches.
Caller must understand stack trace format, so there's less abstraction.
- Specified by:
underToken
in interface ControlFlow
Copyright (C) 2003-2004 The Spring Framework Project.