public interface HookHandlerService
Modifier and Type | Field and Description |
---|---|
static int |
PRIORITY_HIGH |
static int |
PRIORITY_LOW |
static int |
PRIORITY_LOWER |
static int |
PRIORITY_MEDIUM |
Modifier and Type | Method and Description |
---|---|
<H extends Hook> |
attachHooker(java.lang.Class<? extends H> hook,
<any> hookerProvider)
Attaches the given hooker to the given
Hook with a priority of
PRIORITY_MEDIUM |
<H extends Hook> |
attachHooker(java.lang.Class<? extends H> hook,
<any> hookerProvider,
int priority)
Attaches the given hooker to the given
Hook with the given priority |
<H extends Hook> |
attachHooker(java.lang.Class<? extends H> hook,
H hooker)
Attaches the given hooker to the given
Hook with a priority of
PRIORITY_MEDIUM |
<H extends Hook> |
attachHooker(java.lang.Class<? extends H> hook,
H hooker,
int priority)
Attaches the given hooker to the given
Hook with the given priority |
<H extends Hook> |
detachHooker(java.lang.Class<? extends H> hook,
<any> hookerProvider)
Detaches the given hooker from the given
Hook |
<H extends Hook> |
detachHooker(java.lang.Class<? extends H> hook,
H hooker)
Detaches the given hooker from the hook
|
HookConfiguration |
getConfig(java.lang.Class<? extends Hook> hook) |
<H extends Hook> |
getHookers(java.lang.Class<? extends H> hook)
Returns a
List of all hookers which are attached to the given hook. |
<H extends Hook> |
getRawHookerProviders(java.lang.Class<? extends H> hook) |
<H extends Hook> |
getRawHookers(java.lang.Class<? extends H> hook) |
void |
setConfig(HookConfiguration config) |
static final int PRIORITY_LOWER
static final int PRIORITY_LOW
static final int PRIORITY_MEDIUM
static final int PRIORITY_HIGH
<H extends Hook> void attachHooker(java.lang.Class<? extends H> hook, H hooker, int priority)
Hook
with the given priorityH
- can be any type extending Hook
hook
- The hook to connect the hooker tohooker
- The hookerpriority
- The priority<H extends Hook> void attachHooker(java.lang.Class<? extends H> hook, H hooker)
Hook
with a priority of
PRIORITY_MEDIUMH
- can be any type extending Hook
hook
- The hook to connect the hooker tohooker
- The hooker<H extends Hook> void detachHooker(java.lang.Class<? extends H> hook, H hooker)
H
- can be any type extending Hook
hook
- hooker
- <H extends Hook> void attachHooker(java.lang.Class<? extends H> hook, <any> hookerProvider, int priority)
Hook
with the given priorityH
- can be any type extending Hook
hook
- The hook to connect the hooker tohookerProvider
- The provider for the hookerpriority
- The priority<H extends Hook> void attachHooker(java.lang.Class<? extends H> hook, <any> hookerProvider)
Hook
with a priority of
PRIORITY_MEDIUMH
- can be any type extending Hook
hook
- The hook to connect the hooker tohookerProvider
- The provider for the hooker<H extends Hook> void detachHooker(java.lang.Class<? extends H> hook, <any> hookerProvider)
Hook
H
- can be any type extending Hook
hook
- The hook to disconnect the hooker fromhookerProvider
- The provider for the hooker<H extends Hook> java.util.List<H> getHookers(java.lang.Class<? extends H> hook)
List
of all hookers which are attached to the given hook.HookConfiguration getConfig(java.lang.Class<? extends Hook> hook)
void setConfig(HookConfiguration config)
<H extends Hook> java.util.List<<any>> getRawHookerProviders(java.lang.Class<? extends H> hook)
<H extends Hook> java.util.List<H> getRawHookers(java.lang.Class<? extends H> hook)