Class HookSet<R>

java.lang.Object
pro.gravit.utils.HookSet<R>

public class HookSet<R> extends Object
  • Field Details

  • Constructor Details

    • HookSet

      public HookSet()
  • Method Details

    • registerHook

      public void registerHook(HookSet.Hook<R> hook)
    • unregisterHook

      public void unregisterHook(HookSet.Hook<R> hook)
    • hook

      public boolean hook(R context) throws HookException
      Parameters:
      context - custom param
      Returns:
      True if hook to interrupt processing False to continue
      Throws:
      HookException - The hook may return the error text throwing this exception