Hi guys, Note: I originally posted this to the flexcoders list, but thought I'd try it again here. So sorry if you read this twice.
We are developing an application that has login functionality. Depending on the "context" (offline, online, ...) the application runs in, we would like to switch between local file io and online database access via remoting or webservices to read and write the user data. I was thinking where the best place would be to put the switch mechanism. My thought: We would have a LoginCommand that calls a business delegate (let's call it AuthenticationDelegate) to talk to the remote services, web services or the local file system. The command doesn"t create a specific business delegate but gets it from a configured locater or even a factory that tries to look up the context. The command receives a IAuthenticationDelegate instance which would be a specific implementation of WebserviceAuthenticationDelegate, RemotingAuthenticationDelegate or LocalAuthenticationDelegate. Does this seem like a good solution to you guys, would you place the switch elsewhere or is the idea bad altogether? I'm pretty sure it should work, but I was wondering if any of you had done something similar before. thx for your time, Christophe _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
