|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HookContext
A callable hook that contains the context for call a collection of hooks. This is effectively a "closure" for calling each hook. The hook context must know the type of the hook object, the method to call on the hook as well as all the parameters which need to be passed to the hook method.
| Method Summary | |
|---|---|
void |
call(java.lang.Object hook,
ServiceRegistration<?> hookRegistration)
Call the specified hook. |
java.lang.String |
getHookClassName()
Return the class name of the hook type supported by this hook context. |
java.lang.String |
getHookMethodName()
Return the hook method name called by this hook context. |
| Method Detail |
|---|
void call(java.lang.Object hook,
ServiceRegistration<?> hookRegistration)
throws java.lang.Exception
hook - The hook object to call. The hook object must be of the type
supported by this hook context. If it is not, then this method will
simply return.hookRegistration - the registration for the hook object
java.lang.Exception - An exception thrown by the hook object.java.lang.String getHookClassName()
java.lang.String getHookMethodName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||