Interface HookHandlerService
- All Known Implementing Classes:
HookHandlerServiceImpl
public interface HookHandlerService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescription<H extends Hook>
voidattachHooker(Class<? extends H> hook, <any> hookerProvider) Attaches the given hooker to the givenHookwith a priority of PRIORITY_MEDIUM<H extends Hook>
voidattachHooker(Class<? extends H> hook, <any> hookerProvider, int priority) Attaches the given hooker to the givenHookwith the given priority<H extends Hook>
voidattachHooker(Class<? extends H> hook, H hooker) Attaches the given hooker to the givenHookwith a priority of PRIORITY_MEDIUM<H extends Hook>
voidattachHooker(Class<? extends H> hook, H hooker, int priority) Attaches the given hooker to the givenHookwith the given priority<H extends Hook>
voiddetachHooker(Class<? extends H> hook, <any> hookerProvider) Detaches the given hooker from the givenHook<H extends Hook>
voiddetachHooker(Class<? extends H> hook, H hooker) Detaches the given hooker from the hookgetHookers(Class<? extends H> hook) Returns aListof all hookers which are attached to the given hook.getRawHookerProviders(Class<? extends H> hook) getRawHookers(Class<? extends H> hook) voidsetConfig(HookConfiguration config)
-
Field Details
-
PRIORITY_LOWER
static final int PRIORITY_LOWER- See Also:
-
PRIORITY_LOW
static final int PRIORITY_LOW- See Also:
-
PRIORITY_MEDIUM
static final int PRIORITY_MEDIUM- See Also:
-
PRIORITY_HIGH
static final int PRIORITY_HIGH- See Also:
-
-
Method Details
-
attachHooker
Attaches the given hooker to the givenHookwith the given priority- Type Parameters:
H- can be any type extendingHook- Parameters:
hook- The hook to connect the hooker tohooker- The hookerpriority- The priority
-
attachHooker
Attaches the given hooker to the givenHookwith a priority of PRIORITY_MEDIUM- Type Parameters:
H- can be any type extendingHook- Parameters:
hook- The hook to connect the hooker tohooker- The hooker
-
detachHooker
Detaches the given hooker from the hook- Type Parameters:
H- can be any type extendingHook- Parameters:
hook-hooker-
-
attachHooker
Attaches the given hooker to the givenHookwith the given priority- Type Parameters:
H- can be any type extendingHook- Parameters:
hook- The hook to connect the hooker tohookerProvider- The provider for the hookerpriority- The priority
-
attachHooker
Attaches the given hooker to the givenHookwith a priority of PRIORITY_MEDIUM- Type Parameters:
H- can be any type extendingHook- Parameters:
hook- The hook to connect the hooker tohookerProvider- The provider for the hooker
-
detachHooker
Detaches the given hooker from the givenHook- Type Parameters:
H- can be any type extendingHook- Parameters:
hook- The hook to disconnect the hooker fromhookerProvider- The provider for the hooker
-
getHookers
Returns aListof all hookers which are attached to the given hook. -
getConfig
-
getRawHookerProviders
-
getRawHookers
-