Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Can proxies use other proxies for global settings?  (Read 6141 times)
jlahr
Jr. Member
**
Posts: 19


View Profile Email
« 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.
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 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>
Logged
Pages: [1]
Print