Injector instance used within current Context
Whether context is destroyed and thus unusable
Whether Context is initialized. Extension mappings and modules should be added only whilst Context is not initialized.
Number of active listeners on this dispatcher instance.
Add event listener.
Event name for which to listen to
Listener function that will be invoked as event with specified name is dispatched.
Listener scope which will be applied as listener is invoked. (You can leave it undefined, if you don't care about scope that much).
Null in case if event name is already mapped to same function. Or EventMapping object
which is to be used in order to set some of mapping properties like once()
which will make listener
to be executed upon first event dispatch and then be gone.
Configure application with application modules.
A single entry or list of modules demarcated by @Module decorator.
Current context operation is performed on
Destroy context, its Injector, modules and extensions
Dispatch event object to all subscribed listeners.
Event object that defines event type and data
True if any event mappings to event name have been found; false otherwise.
Dispatch event notification by separate type and data arguments.
Event type to be dispatched.
Arbitrary data to ship along with event dispatch.
True if any event mappings to event name have been found; false otherwise.
Implement actual event dispatching
Event to dispatch
True if some event clients where found and event is delivered or false otherwise.
Check if event dispatcher has mapping of certain event to listener.
Target event name.
Listener function.
Listener scope which will be applied as listener is invoked.
true if event mapping is found and false otherwise
Check if some module is mapped with Context via direct mapping via configure() call or as required module of any directly mapped modules. This method will return any valid data only after Context is initialized
Module to check mapping of
Initialize context - install extensions, map modules and move through init lifecycle phases
Install Context extensions or
A single entry or list of Type
Current context operation is performed on
Add event listener that will be executed only once.
Event name for which to listen to
Listener function that will be invoked as event with specified name is dispatched.
Listener scope which will be applied as listener is invoked. (You can leave it undefined, if you don't care about scope that much).
Null in case if event name is already mapped to same function. Or EventMapping object
which is to be used in order to set some of mapping properties like once()
which will make listener
to be executed upon first event dispatch and then be gone.
Remove all listeners registered with specified scope or with the whole dispatcher instance.
Scope from which all listeners mapped listeners will be removed. If not specified, all listeners will be removed from whole dispatcher instance.
True if any listeners to remove where found; false otherwise.
Remove event listener.
Target event name.
Listener function.
Listener scope which will be applied as listener is invoked.
True if event name binding to listener function was found or false if it was found not.
Remove all listeners of a particular event from all scopes or the specified scope.
Event name to be unmapped from all listeners.
Listener scope from which all listeners mapped to eventType will be removed.
True if any of mappings have been found; false otherwise.
Application context representation class - a hosting environment for application or its sub context TODO: Add handling of child and parent contexts in this class
Jānis Radiņš