PureMVC Architects Lounge

Announcements and General Discussion => Architecture => Topic started by: newtriks on October 13, 2007, 01:51:22



Title: Registering Proxies
Post by: newtriks on October 13, 2007, 01:51:22
Ok I am on a roll here with the queries, due to an execution problem i.e. I want the proxies to execute in a specific order, I have taken some proxy registration out of my StartupCommand and placed them into other commands initiated as the application develops.  So I now have a command other than StartupCommand which contains facade.registerProxy is this an acceptable practice (it works)?


Title: Re: Registering Proxies
Post by: puremvc on October 13, 2007, 07:09:13
The only problem with that is keeping other code from asking for this proxy before it is created.

It really is best to init all proxies at startup before the view is prepped. You can always have the proxy not go fetch or create its data until it is first requested.

-=Cliff>