|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.core.ControlFlowFactory.Jdk14ControlFlow
static class ControlFlowFactory.Jdk14ControlFlow
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.
StackTraceElement
Constructor Summary | |
---|---|
ControlFlowFactory.Jdk14ControlFlow()
|
Method Summary | |
---|---|
String |
toString()
|
boolean |
under(Class clazz)
Searches for class name match in a StackTraceElement. |
boolean |
under(Class clazz,
String methodName)
Searches for class name match plus method name match in a StackTraceElement. |
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, wait, wait, wait |
Constructor Detail |
---|
public ControlFlowFactory.Jdk14ControlFlow()
Method Detail |
---|
public boolean under(Class clazz)
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 forpublic String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |