Interface HookHandlerService

All Known Implementing Classes:
HookHandlerServiceImpl

public interface HookHandlerService
  • Field Details

  • Method Details

    • attachHooker

      <H extends Hook> void attachHooker(Class<? extends H> hook, H hooker, int priority)
      Attaches the given hooker to the given Hook with the given priority
      Type Parameters:
      H - can be any type extending Hook
      Parameters:
      hook - The hook to connect the hooker to
      hooker - The hooker
      priority - The priority
    • attachHooker

      <H extends Hook> void attachHooker(Class<? extends H> hook, H hooker)
      Attaches the given hooker to the given Hook with a priority of PRIORITY_MEDIUM
      Type Parameters:
      H - can be any type extending Hook
      Parameters:
      hook - The hook to connect the hooker to
      hooker - The hooker
    • detachHooker

      <H extends Hook> void detachHooker(Class<? extends H> hook, H hooker)
      Detaches the given hooker from the hook
      Type Parameters:
      H - can be any type extending Hook
      Parameters:
      hook -
      hooker -
    • attachHooker

      <H extends Hook> void attachHooker(Class<? extends H> hook, <any> hookerProvider, int priority)
      Attaches the given hooker to the given Hook with the given priority
      Type Parameters:
      H - can be any type extending Hook
      Parameters:
      hook - The hook to connect the hooker to
      hookerProvider - The provider for the hooker
      priority - The priority
    • attachHooker

      <H extends Hook> void attachHooker(Class<? extends H> hook, <any> hookerProvider)
      Attaches the given hooker to the given Hook with a priority of PRIORITY_MEDIUM
      Type Parameters:
      H - can be any type extending Hook
      Parameters:
      hook - The hook to connect the hooker to
      hookerProvider - The provider for the hooker
    • detachHooker

      <H extends Hook> void detachHooker(Class<? extends H> hook, <any> hookerProvider)
      Detaches the given hooker from the given Hook
      Type Parameters:
      H - can be any type extending Hook
      Parameters:
      hook - The hook to disconnect the hooker from
      hookerProvider - The provider for the hooker
    • getHookers

      <H extends Hook> List<H> getHookers(Class<? extends H> hook)
      Returns a List of all hookers which are attached to the given hook.
      Type Parameters:
      H - can be any type extending Hook
      Parameters:
      hook - The Hook to get the attached hookers from
    • getConfig

      HookConfiguration getConfig(Class<? extends Hook> hook)
    • setConfig

      void setConfig(HookConfiguration config)
    • getRawHookerProviders

      <H extends Hook> List<<any>> getRawHookerProviders(Class<? extends H> hook)
    • getRawHookers

      <H extends Hook> List<H> getRawHookers(Class<? extends H> hook)