public class DumpStackInvocationHandler extends AbstractInvocationHandler
$proxy=neo.util.DumpStackInvocationHandler
$proxy.methodNames=postEvent
$proxy.whatToLookFor=ContentManager
Adding this to /io/api/EventManager.properties will give you a
Thread.dumpStack() whenever the postEvent method is invoked within
a database transaction(because all database transactions are
executed from ContentManager)Constructor and Description |
---|
DumpStackInvocationHandler(Object pTarget) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
dumpStack(Object pProxy,
Method pMethod,
Object[] pArguments)
This method is responsible for deciding if we should dump the stack or not.
|
String |
getErrorMessage() |
String[] |
getMethodNames() |
String |
getWhatToLookFor() |
Object |
invoke(Object pProxy,
Method pMethod,
Object[] pArguments) |
void |
setErrorMessage(String pErrorMessage) |
void |
setMethodNames(String[] pMethodNames) |
void |
setWhatToLookFor(String pWhatToLookFor) |
getTarget
public DumpStackInvocationHandler(Object pTarget)
public void setMethodNames(String[] pMethodNames)
public String[] getMethodNames()
public String getWhatToLookFor()
public void setWhatToLookFor(String pWhatToLookFor)
public String getErrorMessage()
public void setErrorMessage(String pErrorMessage)
public Object invoke(Object pProxy, Method pMethod, Object[] pArguments) throws Throwable
invoke
in interface InvocationHandler
invoke
in class AbstractInvocationHandler
Throwable
protected boolean dumpStack(Object pProxy, Method pMethod, Object[] pArguments)
invoke(Object, Method, Object[])
.© 1998- 2018 Stibo DX