Class: Protege::Hook
- Inherits:
-
Object
- Object
- Protege::Hook
- Includes:
- HookMixin
- Defined in:
- lib/protege/extensions/hook.rb
Overview
Base class for hooks — the surface host apps use to react to engine lifecycle events. Host apps
subclass Protege::Hook and declare handlers with the class-level on DSL; each handler block
receives a typed Protege::Event. The declaration contract (the +on+/+stateful+ DSL) lives in
HookMixin, which this includes; the runtime that wires those declarations to the event bus and
runs them (isolated dispatch, stateful-instance lifecycle) is Protege::Subscribers::HookDispatcher,
installed once at boot.