|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.core.ControlFlowFactory.Jdk13ControlFlow
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.
Constructor Summary | |
ControlFlowFactory.Jdk13ControlFlow()
|
Method Summary | |
boolean |
under(Class clazz)
Detect whether we're under the given class, according to the current stack trace. |
boolean |
under(Class clazz,
String methodName)
Matches whole method name. |
boolean |
underToken(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 |
Constructor Detail |
public ControlFlowFactory.Jdk13ControlFlow()
Method Detail |
public boolean under(Class clazz)
ControlFlow
under
in interface ControlFlow
clazz
- the clazz to look forpublic boolean under(Class clazz, String methodName)
under
in interface ControlFlow
clazz
- the clazz to look formethodName
- the name of the method to look forpublic boolean underToken(String token)
underToken
in interface ControlFlow
token
- the token to look for
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |