PureMVC Architects Lounge

Announcements and General Discussion => Getting Started => Topic started by: jlahr on December 15, 2009, 01:36:39



Title: Can proxies use other proxies for global settings?
Post by: jlahr on December 15, 2009, 01:36:39
According to this thread (http://forums.puremvc.org/index.php?topic=1357.0) is it recommended that global settings are stored in their own, I'm assuming static, proxy.

Would this be a good place to store the connection parameters for remote proxies which point to the same server?

Thanks.


Title: Re: Can proxies use other proxies for global settings?
Post by: puremvc on December 15, 2009, 01:41:43
Yes, you can retrieve a proxy from another proxy to get a setting or collaborate in whatever way is necessary to keep the domain integrity housed in the model tier.

But avoid the statics. Retrieve Proxies and get the data from them. Making things static is a slippery slope to spaghetti code filled with references to mammoth objects that expose tons of unrelated data.

But you
-=Cliff>