|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MethodMonitor
This interface represents something that monitors the invocation of a method.
| Method Summary | |
|---|---|
void |
invocationFailed(java.lang.Object obj,
java.lang.reflect.Method mtd,
java.lang.Object[] args,
java.lang.Throwable err,
long duration)
This method is called after the target method failed. |
void |
invoked(java.lang.Object obj,
java.lang.reflect.Method mtd,
java.lang.Object[] args,
java.lang.Object result,
long duration)
This method is called after the target method is successfully executed. |
void |
invoking(java.lang.Object obj,
java.lang.reflect.Method mtd,
java.lang.Object[] args)
This method is called right before the target method is invoked. |
| Method Detail |
|---|
void invoking(java.lang.Object obj,
java.lang.reflect.Method mtd,
java.lang.Object[] args)
obj - the object to which the target method belongs.mtd - the target method.args - the arguments passed to the target method.
void invoked(java.lang.Object obj,
java.lang.reflect.Method mtd,
java.lang.Object[] args,
java.lang.Object result,
long duration)
obj - the object to which the target method belongs.mtd - the target method.args - the arguments passed to the target method.result - the return value from the target method.duration - exactly how long it took to execute the target method. (in milliseconds)
void invocationFailed(java.lang.Object obj,
java.lang.reflect.Method mtd,
java.lang.Object[] args,
java.lang.Throwable err,
long duration)
obj - the object to which the target method belongs.mtd - the target method.args - the arguments passed to the target method.err - the exception thrown out from the target method.duration - exactly how long it took to execute the target method. (in milliseconds)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||