Skip to content

Commit

Permalink
Add definition of Dispatcher.
Browse files Browse the repository at this point in the history
  • Loading branch information
Crell committed Aug 19, 2018
1 parent a88767a commit 4176263
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions proposed/event-dispatcher.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Some examples:
* **Emitter** - An Emitter is any arbitrary code that wishes to send an Event. This is also known as the "calling code". It is not represented by any particular data structure but refers to the use case.
* **Notifier** - A Notifier is a service object that is given a Message object by an Emitter. The Notifier is responsible for ensuring that the Message is passed to all relevant Listeners, but MUST defer determining the responsible listeners to a Listener Provider.
* **Processor** - A Processor is a service object that is given a Task object by an Emitter. The Processor is responsible for ensuring that the Task is passed to all relevant Listeners, but MUST defer determining the responsible listeners to a Listener Provider.
* **Dispatcher** - A Dispatcher refers to either a Notifier or a Processor. It is not a discrete object defined by this specification but a collective noun for "A Notifier or Processor" for those cases where they can be addressed collectively.
* **Listener Provider** - A Listener Provider is responsible for determining what Listeners are relevant for a given Event, but MUST NOT call the Listeners itself. A Listener Provider may specify zero or more relevant Listeners.

## Events
Expand Down

0 comments on commit 4176263

Please sign in to comment.