public class HookRegistry extends Object
Constructor and Description |
---|
HookRegistry() |
Modifier and Type | Method and Description |
---|---|
<T> T |
chain(Class<? extends ChainedHook> chainClass,
T arg) |
<T> void |
dispatch(Class<? extends HookHandler> handlerClass,
T arg) |
<T,V> T |
find(Class<? extends FirstValueHook<T,V>> cls,
V arg) |
static HookRegistry |
instance() |
static HookRegistry |
load() |
void |
register(ChainedHook handler) |
void |
register(FirstValueHook handler) |
void |
register(HookHandler handler) |
static void |
registerDefaultHandlers() |
static void |
shutdown() |
public HookRegistry()
public static HookRegistry instance()
public static HookRegistry load()
public static void shutdown()
public static void registerDefaultHandlers()
public void register(HookHandler handler)
public void register(ChainedHook handler)
public void register(FirstValueHook handler)
public <T,V> T find(Class<? extends FirstValueHook<T,V>> cls, V arg)
public <T> void dispatch(Class<? extends HookHandler> handlerClass, T arg)
public <T> T chain(Class<? extends ChainedHook> chainClass, T arg)
Copyright © 2016. All rights reserved.