Class HookSet<R>


  • public class HookSet<R>
    extends java.lang.Object
    • Constructor Detail

      • HookSet

        public HookSet()
    • Method Detail

      • registerHook

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

        public boolean 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