|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objects can use this interface to provide "method-hooks" for themselves. MethodHookCallbacks can register for these hooks.
| Method Summary | |
void |
addMethodHook(MethodHookCallback callback,
java.lang.String methodName)
Registers for the specified method-hook. |
void |
removeMethodHook(MethodHookCallback callback,
java.lang.String methodName)
Unregisters for the specified method-hook. |
void |
runMethodHook(java.lang.String hookName,
java.lang.Object data)
Runs the specific method hook. |
| Method Detail |
public void addMethodHook(MethodHookCallback callback,
java.lang.String methodName)
methodName - the name of the method to hook intocallback - the MethodHookCallback object to notify on the hook
public void removeMethodHook(MethodHookCallback callback,
java.lang.String methodName)
methodName - the name of the methodcallback - the MethodHookCallback object to notify on the hook
public void runMethodHook(java.lang.String hookName,
java.lang.Object data)
hookName - the name of the method, e.g. "add"data - any data to pass to the callbacks; can be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||