Package pro.gravit.utils
Class HookSet<R>
java.lang.Object
pro.gravit.utils.HookSet<R>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidregisterHook(HookSet.Hook<R> hook) booleanunregisterHook(HookSet.Hook<R> hook)
-
Field Details
-
list
-
-
Constructor Details
-
HookSet
public HookSet()
-
-
Method Details
-
registerHook
-
unregisterHook
-
hook
- 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
-