Mediator Receiving a Command?

kerry.kim.russo's Avatar

kerry.kim.russo

09 Jul, 2012 09:49 PM

I'm reading up on commands and am a little confused by something in one of the articles. It states:

Commands are appropriate for communication between application tiers and are able to send system events that will either launch other Commands or be received by a Mediator to perform work on a View Component in response to the event

Maybe it's fatigue, but I'm not quite grasping what it means for a mediator to receive a command. I thought commands get triggered by events sent from actors other than views, but how would an actor, specifically a mediator, receive a command?

  1. Support Staff 1 Posted by Shaun Smith on 09 Jul, 2012 09:56 PM

    Shaun Smith's Avatar

    Hello,

    Maybe the wording is bad, but it should be read like this:

    "able to send system events that will either launch other Commands or be received by a Mediator"

    In other words, the events would be received by the Mediator. Hope that helps.

  2. 2 Posted by kerry.kim.russo on 10 Jul, 2012 12:17 PM

    kerry.kim.russo's Avatar

    Ohok, so the command itself would dispatch a system event that a mediator would capture. I'm not sure if that was fatigue or oddly worded, or some combination of the two but thanks for clarifying.

  3. kerry.kim.russo closed this discussion on 10 Jul, 2012 12:17 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac