Package com.tnsai.hooks
package com.tnsai.hooks
-
ClassDescriptionPer-event context attached to every
HookEventso a hook implementation has the full surrounding scope without having to fish it out of thread-local state (issue #58).How theHookDispatcherhandles a hook that throws or times out duringapply(issue #58).HookMatcher<E extends HookEvent>Filters whether aHookfires for a given event (issue #58).HookMatcher.All<E extends HookEvent>Unconditional match.HookMatcher.Predicate<E extends HookEvent>Arbitrary typed predicate — use when regex-on-eventType isn't enough (payload field inspection, cross-field rules).HookMatcher.Regex<E extends HookEvent>Pattern applied toHookEvent.eventType().HookResult<E extends HookEvent>Decision returned by aHookafter observing an event (issue #58).HookResult.Allow<E extends HookEvent>Pass-through.HookResult.Block<E extends HookEvent>Refuse the operation.HookResult.Modify<E extends HookEvent>Replace the event for the rest of the chain.Severity of aHookResult.Blockdecision (issue #58).