Class BiHookSet<V,R>

java.lang.Object
pro.gravit.utils.BiHookSet<V,R>

public class BiHookSet<V,R> extends Object
  • Field Details

  • Constructor Details

    • BiHookSet

      public BiHookSet()
  • Method Details

    • registerHook

      public void registerHook(BiHookSet.Hook<V,R> hook)
    • unregisterHook

      public boolean unregisterHook(BiHookSet.Hook<V,R> hook)
    • hook

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