Title: Call the proxy methods through JunctionMediator? Post by: mariusht on November 19, 2009, 07:47:29 Hi,
I would like to know if calling proxy methods through JunctionMediator is a good practice? Scenario 1: I send a message to the module, junctionMediator receives a message and call proxy methods. Scenario 2: I send a message to the module, junctionMediator receives a messages and sends out note. Corresponding command is triggered which call proxy methods. Thank You, Mariush T. http://mariusht.com/blog/ Title: Re: Call the proxy methods through JunctionMediator? Post by: puremvc on November 19, 2009, 03:19:45 There's nothing wrong with Mediators, including JunctionMediator subclasses from forming collaborations with Proxies.
If the core is small (only one or two Proxies) then Scenario 1 is the path of least resistance and should be fine. If it is a large core with a lot of Proxies, it might still be fine, but you're probably better off going with Scenario 2 to avoid having such a bloated Mediator with too many responsibilities. -=Cliff> Title: Re: Call the proxy methods through JunctionMediator? Post by: mariusht on November 19, 2009, 05:50:36 It makes sense, thank you.
Mariush T. http://mariusht.com/blog/ |