public class HookSet<R>
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
HookSet.Hook<R> |
| Modifier and Type | Field and Description |
|---|---|
java.util.Set<HookSet.Hook<R>> |
list |
| Constructor and Description |
|---|
HookSet() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hook(R context) |
void |
registerHook(HookSet.Hook<R> hook) |
boolean |
unregisterHook(HookSet.Hook<R> hook) |
public java.util.Set<HookSet.Hook<R>> list
public void registerHook(HookSet.Hook<R> hook)
public boolean unregisterHook(HookSet.Hook<R> hook)
public boolean hook(R context) throws HookException
context - custom paramHookException - The hook may return the error text throwing this exception