Athena::EventDispatcher::EventDispatcher
Inherits Athena::EventDispatcher::EventDispatcherInterface < Athena::Contracts::EventDispatcher::Interface < Reference < Object
Default implementation of AED::EventDispatcherInterface.
Instance methods
Dispatches the provided event to all listeners listening on that event.
Returns true if this dispatcher has any listeners on the provided event_class.
Registers the provided callable listener to this dispatcher.
Registers the provided listener instance to this dispatcher.
T is any type that has methods annotated with AEDA::AsEventListener.
Registers the provided callable listener to this dispatcher, overriding its priority with that of the provided priority.
Registers the block as an AED::Callable on the provided event_class, optionally with the provided priority and/or name.
Returns an Array(AED::Callable) for all listeners on the provided event_class.
Returns a hash of all registered listeners as a Hash(ACTR::EventDispatcher::Event.class, Array(AED::Callable)).
Deregisters the provided callable from this dispatcher.
TIP: The callable may be one retrieved via either #listeners method.
Deregisters listeners based on the provided listener from this dispatcher.
T is any type that has methods annotated with AEDA::AsEventListener.