PureMVC
Home
About
Code
Docs
FAQ
Forums
News
Showcase
Contact
Jobs
Welcome,
Guest
. Please
login
or
register
.
September 02, 2010, 07:48:30 AM
News:
ATTENTION: Spambots must die! Humans must visit
http://contact.futurescale.com
to request forum access.
PureMVC Architects Lounge
PureMVC Manifold
Port to AS3
Standard Version
Does mediator sendNotification to proxy or they can call directly ?
Pages: [
1
]
« previous
next »
Author
Topic: Does mediator sendNotification to proxy or they can call directly ? (Read 3194 times)
fidiman
Full Member
Posts: 23
Does mediator sendNotification to proxy or they can call directly ?
«
on:
September 22, 2008, 01:20:41 PM »
Hello,
I'm new to here.
I'm started by a simple question, i think.
Does mediator sendNotification to proxy or they can call directly ?
thanks.
Logged
puremvc
Global Moderator
Hero Member
Posts: 2366
Re: Does mediator sendNotification to proxy or they can call directly ?
«
Reply #1 on:
September 22, 2008, 02:07:27 PM »
Proxies cannot receive Notifications. This is to keep them portable; not dependent on the use cases and notifications defined by the view and controller regions.
the mediator may retrieve and interact with the methods and properties exposed by the Proxy.
To understand why this would be so, always consider the possibility that your domain model may be reused in a different application with different use cases. The Flex browser-based app might provide walk-up, ever-present web based functionality while a desktop version adds more powerful features for working with data locally and interacting with other desktop apps. Still yet another mobile version might add a ui that makes quick queries against the same remote services.
You have one model and 3 very different apps. So the model should be internally self-consistent, but unaware of the business of the app its a part of.
But from each app's perspective, that model is at the core of their reason for existence. To represent it and allow the user to interact with it. So a relatively intimate familiarity with the model can be expected in the controller and view tiers.
Thus Proxies send but do not receive notifications, while Mediators and Commands may retrieve and interact with Proxies directly.
-=Cliff>
Logged
fidiman
Full Member
Posts: 23
Re: Does mediator sendNotification to proxy or they can call directly ?
«
Reply #2 on:
September 23, 2008, 12:05:45 AM »
very clear !
thanks !
Logged
fidiman
Full Member
Posts: 23
Re: Does mediator sendNotification to proxy or they can call directly ?
«
Reply #3 on:
September 23, 2008, 12:56:15 AM »
So, sendNotification is used in mediator only for communicate with other mediator ?
Logged
puremvc
Global Moderator
Hero Member
Posts: 2366
Re: Does mediator sendNotification to proxy or they can call directly ?
«
Reply #4 on:
September 23, 2008, 04:46:36 AM »
Or to trigger a Command.
-=Cliff>
Logged
fidiman
Full Member
Posts: 23
Re: Does mediator sendNotification to proxy or they can call directly ?
«
Reply #5 on:
September 23, 2008, 04:54:43 AM »
ok, thanks
Logged
marek
Jr. Member
Posts: 14
Re: Does mediator sendNotification to proxy or they can call directly ?
«
Reply #6 on:
September 26, 2008, 04:58:56 PM »
Need to say that it took me some time to understand it,
so just to make clear
---------------------------+----------+---------+
| - actor - | send | receive |
---------------------------+----------+---------+
| view (mediator) | yes | yes |
---------------------------+----------+---------+
| controller (commands) | yes | yes |
---------------------------+----------+---------+
| model (proxies) | yes | no |
---------------------------+----------+---------+
Is it better to send notification from view or better to call command that will do that? What is better habit?
«
Last Edit: October 31, 2008, 02:41:41 AM by marek
»
Logged
puremvc
Global Moderator
Hero Member
Posts: 2366
Re: Does mediator sendNotification to proxy or they can call directly ?
«
Reply #7 on:
September 27, 2008, 05:00:49 AM »
Regarding when to trigger Commands and when to simply manipulate Proxies directly from a Mediator, see:
http://forums.puremvc.org/index.php?topic=476
-=Cliff>
Logged
fidiman
Full Member
Posts: 23
Re: Does mediator sendNotification to proxy or they can call directly ?
«
Reply #8 on:
October 02, 2008, 11:53:30 PM »
thanks guys...
Logged
Pages: [
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Announcements and General Discussion
-----------------------------
=> Official PureMVC Announcements
=> General Discussion
=> Getting Started
=> Architecture
===> OSGI Working Group
=> Public Demos, Tools and Applications
===> Fabrication
-----------------------------
PureMVC Manifold
-----------------------------
=> Port Authority
===> Contributor Central
===> Client Side
===> Server Side
=> Port to AS2
===> Standard Version
=====> Bug Report
=====> Demos and Utils
=> Port to AS3
===> Standard Version
=====> Bug Report
=====> Demos and Utils
===> MultiCore Version
=====> Bug Report
=====> Demos and Utils
=> Port to ColdFusion
===> Standard Version
=====> Bug Report
=====> Demos and Utils
=> Port to CSharp
===> Standard Version
=====> Bug Report
=====> Demos and Utils
=> Port to Haxe
===> Standard Version
=====> Bug Report
=====> Demos and Utils
===> MultiCore Version
=====> Bug Report
=====> Demos and Utils
=> Port to Java
===> Standard Version
=====> Bug Report
=====> Demos and Utils
===> MultiCore Version
=====> Bug Report
=====> Demos and Utils
=> Port to JavaScript
===> Standard Version
=====> Bug Report
=====> Demos and Utils
=> Port to Objective C
===> Standard Version
=====> Bug Report
=====> Demos and Utils
=> Port to PHP
===> Standard Version
=====> Bug Report
=====> Demos and Utils
=> Port to Python
===> Standard Version
=====> Bug Report
=====> Demos and Utils
=> Port to Ruby
===> Standard Version
=====> Bug Report
=====> Demos and Utils
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Powered by SMF 1.1.11
|
SMF © 2006-2007, Simple Machines LLC
Loading...
Copyright © 2006-2008 Futurescale, Inc.