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 / 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]