|
Hey Mike,
So that's an interesting question you ask; our intention
for ServiceLocator is support for the RPC services in Flex ... at least that is
the heritage of the ServiceLocator from Flex 1.5, and that's how we've
personally been using it in Flex 2.
For the Flex Data Services apps that we're building, we're
still chewing around on a number of different approaches, and haven't yet
reached a conensus on what we consider "bestest-practice"; there are so many
different use-cases.
My instincts are that data services don't need to be
declared on the ServiceLocator, and that managed collections are more akin to
"intelligent model" objects; that if a command is used to manipulating a
model (via the model locator) onResult of an RPC call, it makes sense in the
data services world that a Command no-longer needs asynchronous result handlers,
but can instead optimistically manipulate a model (a collection with data
services) within the execute() method of a command. So a command still
updates the model, and binding notifies the view - so the "MVC" approach we
achieve in Cairngorm still holds.
This then begs the question of where you
define/create/initialise/etc your collections; is that the ServiceLocator, or is
it somewhere else. Jury is still out for me.
I'm as keen to hear your thoughts as you may be to hear
ours. It still "feels" right to me that the ServiceLocator remains "RPC
only", but I can be convinced with a good argument.
Thoughts ?
Steven
__._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|
- RE: [flexcoders] Cairngorm ServiceLocator and FDS Steven Webster
- RE: [flexcoders] Cairngorm ServiceLocator and FDS Steven Webster
- RE: [flexcoders] Cairngorm ServiceLocator and FDS João Fernandes
- RE: [flexcoders] Cairngorm ServiceLocator and... Bjorn Schultheiss
- RE: [flexcoders] Cairngorm ServiceLocator and FDS Dimitrios Gianninas
- RE: [flexcoders] Cairngorm ServiceLocator and FDS Dimitrios Gianninas
- RE: [flexcoders] Cairngorm ServiceLocator and FDS Dimitrios Gianninas


