public interface HookContext
Modifier and Type | Method and Description |
---|---|
void |
call(Object hook,
ServiceRegistration<?> hookRegistration)
Call the specified hook.
|
String |
getHookClassName()
Return the class name of the hook type supported by this hook context.
|
String |
getHookMethodName()
Return the hook method name called by this hook context.
|
void call(Object hook, ServiceRegistration<?> hookRegistration) throws 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 objectException
- An exception thrown by the hook object.String getHookClassName()
String getHookMethodName()
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.