public class CallbackRegistry
extends java.lang.Object
Hook
s and Callbacks from
ReportServer scripts.Modifier and Type | Class and Description |
---|---|
class |
CallbackRegistry.EventHandlerEntry |
class |
CallbackRegistry.GenericCallbackEntry |
class |
CallbackRegistry.HookEntry |
Constructor and Description |
---|
CallbackRegistry(EventBus eventBus,
HookHandlerService hookHandler) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
attachHook(java.lang.Class<? extends Hook> type,
Hook hooker) |
java.lang.String |
attachHook(java.lang.Class<? extends Hook> type,
Hook hooker,
int priority) |
java.lang.String |
attachHook(java.lang.String name,
java.lang.Class<? extends Hook> type,
Hook hooker) |
java.lang.String |
attachHook(java.lang.String name,
java.lang.Class<? extends Hook> type,
Hook hooker,
int priority) |
<E extends ObjectEvent> |
attachObjectEventHandler(java.lang.Class<E> eventType,
java.lang.Class<?> objectType,
EventHandler<E> handler) |
<E extends ObjectEvent> |
attachObjectEventHandler(java.lang.String name,
java.lang.Class<E> eventType,
java.lang.Class<?> objectType,
EventHandler<E> handler) |
void |
detachAll() |
void |
detachCallback(java.lang.String name)
Detaches the callback with the specified name.
|
void |
detachEventHandler(java.lang.String name)
Detaches the event handler with the specified name
|
void |
detachHook(java.lang.String name)
detaches the hook with the specified name
|
void |
forceRegisterCallback(java.lang.String name,
java.lang.Object callback,
Deregistrar deregistrar) |
void |
forceRegisterHook(java.lang.String name,
java.lang.Class<? extends Hook> hookType,
Hook hook) |
java.util.Map<java.lang.String,CallbackRegistry.GenericCallbackEntry> |
getRegisteredCallbacks()
Returns the map with all registered callbacks.
|
java.util.Map<java.lang.String,CallbackRegistry.HookEntry> |
getRegisteredHooks()
Returns the map with all registered hooks.
|
java.util.Map<java.lang.String,CallbackRegistry.EventHandlerEntry> |
getRegisteredObjectEventHandlers()
Returns the map of all registered object event handlers.
|
java.lang.String |
registerCallback(java.lang.Object callback,
Deregistrar deregistrar) |
void |
registerCallback(java.lang.String name,
java.lang.Object callback,
Deregistrar deregistrar) |
public CallbackRegistry(EventBus eventBus, HookHandlerService hookHandler)
public java.lang.String registerCallback(java.lang.Object callback, Deregistrar deregistrar)
public void registerCallback(java.lang.String name, java.lang.Object callback, Deregistrar deregistrar)
public void forceRegisterCallback(java.lang.String name, java.lang.Object callback, Deregistrar deregistrar)
public void forceRegisterHook(java.lang.String name, java.lang.Class<? extends Hook> hookType, Hook hook)
public java.lang.String attachHook(java.lang.Class<? extends Hook> type, Hook hooker, int priority)
public java.lang.String attachHook(java.lang.String name, java.lang.Class<? extends Hook> type, Hook hooker)
public java.lang.String attachHook(java.lang.String name, java.lang.Class<? extends Hook> type, Hook hooker, int priority)
public <E extends ObjectEvent> java.lang.String attachObjectEventHandler(java.lang.Class<E> eventType, java.lang.Class<?> objectType, EventHandler<E> handler)
public <E extends ObjectEvent> java.lang.String attachObjectEventHandler(java.lang.String name, java.lang.Class<E> eventType, java.lang.Class<?> objectType, EventHandler<E> handler)
public void detachAll()
public void detachHook(java.lang.String name)
public void detachEventHandler(java.lang.String name)
public void detachCallback(java.lang.String name)
public java.util.Map<java.lang.String,CallbackRegistry.HookEntry> getRegisteredHooks()
public java.util.Map<java.lang.String,CallbackRegistry.EventHandlerEntry> getRegisteredObjectEventHandlers()
public java.util.Map<java.lang.String,CallbackRegistry.GenericCallbackEntry> getRegisteredCallbacks()