Mediator Receiving a Command?
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?
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by Shaun Smith on 09 Jul, 2012 09:56 PM
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.
3 Posted by kerry.kim.russo on 10 Jul, 2012 12:17 PM
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.
kerry.kim.russo closed this discussion on 10 Jul, 2012 12:17 PM.