Hey Everyone,

 

Our shop is in the process of working through our first few Flex
Cairngorm projects - one most recently implementing the UM Extensions. I
have a question regarding best practice when it comes to working with
local data services. In other apps I've built I have set a var in my
Model to toggle between using "live" data and local stub data when I
don't have an Internet connection.

 

I began to think about how I might implement this same idea in Cairngorm
but started to scratch my head when I realized that I though I could
make two different versions of my ServiceLocator, there would be a
number of other files that would have to change in the process when
switching between live and local data mode. For instance, all the
delegate classes which refer to specific methods in my remoting objects
would have to be wrapped in conditionals.  I know there must be an
elegant pattern for handling this scenario using Cairngorm with
Extensions.

 

Can anybody out there shed some light or maybe share some sample code
that solves this problem? I know there must be a way to completely
isolate the services to decouple them from the rest of the app.

 

Thanks!

 

Ben Wakeman 

Director of Application Development

______________________________________

 

Digital Positions, Inc.

2289 Peachtree Road NE

Atlanta, GA 30309

 

404-351-6226 phone

404-351-4055 fax

http://www.d-p.com/

 

 




-------------------------------------------------------------

To unsubscribe from this list, simply email the list with unsubscribe in the 
subject line



For more info, see http://www.affug.com

Archive @ http://www.mail-archive.com/discussion%40affug.com/

List hosted by http://www.fusionlink.com

-------------------------------------------------------------

Reply via email to