|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CtorMonitor
This interface represents something that monitors the invocation of a constructor.
| Method Summary | |
|---|---|
void |
constructed(java.lang.reflect.Constructor ctor,
java.lang.Object[] args,
java.lang.Object instance,
long duration)
This method is called right after the constructor is invoked successfully. |
void |
constructing(java.lang.reflect.Constructor ctor,
java.lang.Object[] args)
This method is called right before the constructor is invoked. |
void |
constructionFailed(java.lang.reflect.Constructor ctor,
java.lang.Object[] args,
java.lang.Throwable e,
long duration)
This method is called after the constructor failed. |
| Method Detail |
|---|
void constructing(java.lang.reflect.Constructor ctor,
java.lang.Object[] args)
ctor - the constructor to be called.args - the arguments passed to the constructor.
void constructed(java.lang.reflect.Constructor ctor,
java.lang.Object[] args,
java.lang.Object instance,
long duration)
ctor - the constructor.args - the arguments passed to the constructor.instance - the object created by the constructor.duration - excactly how long the constructor execution takes. (in milliseconds)
void constructionFailed(java.lang.reflect.Constructor ctor,
java.lang.Object[] args,
java.lang.Throwable e,
long duration)
ctor - the constructor.args - the arguments passed to the constructor.e - the exception thrown out of the constructor.duration - exactly how long the constructor execution takes. (in milliseconds)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||