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

Show Posts

* | |

  Show Posts
Pages: [1]
1  Announcements and General Discussion / Architecture / Where to put a Timer within a PureMVC Application on: October 31, 2008, 03:00:31
Hi there,

i've built a "normal" PureMVC-based Application.
Now i have the extension, that every minute the loaded XML data (accessible over a Proxy) has to
be parsed and data that is bound to the current time slot should be made graphical visible in the
view component.
The only question i have is: Where in this PureMVC application should the Timer be created and run, View,
Controller or Proxy ?

Thank you for your help.
Best regards
valley
2  Announcements and General Discussion / Architecture / Re: Where to put processing code for loaded xml resource data on: October 27, 2008, 02:55:44
Jason & Cliff: Thank you very much for your input!

I'm doing it as follows:

1) By using the StartupManagerUtility the two Proxies load their corresponding XML file and expose it as is
    (so no VO's there). Reason: Querying the XML is definitely less time consuming than VO's, since the XML       
    structure is quite complex.
2) When StartupMonitorProxy.LOADING_COMPLETE arrives, a new notification is send, a new Command catches it,
    and
    a) registers a new Proxy
    b) retrieves the two XML objects from the Proxies at 1) and passes them to the new Proxy for processing them
        there, build a new VO out of it and expose that one to the application.

I guess with that it should work fine and performant.
Best regards
valley
3  Announcements and General Discussion / Architecture / Re: Where to put processing code for loaded xml resource data on: October 27, 2008, 06:43:12
Hi Jason

thank you! So in my case the processing Command could retrieve the two xml configs (raw or in VO) from the corresponding Proxies and pass them to a third Proxy, where they are finally processed and the results again
are offered as VO's in an ArrayCollection (for example) by that Proxy. Is that right ? So the third Proxy shouldn't retrieve the two xml configs from the other two Proxies directly ?

Regards
valley
4  Announcements and General Discussion / Architecture / Where to put processing code for loaded xml resource data on: October 27, 2008, 05:46:36
Hi there,
i'm quite new to PureMVC and still have some understanding problems between Command and Proxy tasks.
Here is my question:
For an application i have to load two xml config files, which i did with two different Proxy and SimpleCommand extensions.
After everything has been loaded the next step is to extract and process the data from these two xml configs
together, where the result will be stored in VO objects and stored/offered in another Proxy extension.
I have to say that these processing steps is quite a lot of code and will be placed within several functions.
Now where will i have to put that bunch of processing code, in the corresponding SimpleCommand extension class, in the mentioned third Proxy or in an external Singleton helper class (package controller or model ?), that could also be used for similar processing tasks and be used by other commands ?
Or simpler: To what belongs such processing of loaded configs, business or domain logic ?

Thanks for your thoughts.
Best regards
valley


Pages: [1]