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: Question about resetting an application built with PMVC  (Read 10323 times)
skasssam
Jr. Member
**
Posts: 18


View Profile Email
« on: October 24, 2008, 06:18:39 »

I have an application that uses deferred instantiation (mediators and proxies are only created when needed). When the user logs out, I would like a way to 'reset' the application into its initial state. Right now I am reloading the page that the application is loaded from but I am not sure what the PMVC approach might be.

Any help is appreciated. Thanks.
Logged
Jason MacDonald
Sr. Member
****
Posts: 243


View Profile Email
« Reply #1 on: October 24, 2008, 06:20:59 »

Create a command that will "shutdown" your app, deleting all child objects not needed and removing mediators and proxies. It's much easier if you start building your app with this in mind, adding to the shutdown command as you go. I admit it can be much tougher if your app is already done.
Logged
skasssam
Jr. Member
**
Posts: 18


View Profile Email
« Reply #2 on: October 24, 2008, 06:30:08 »

Thanks for the reply.

I was actually working on this yesterday and just realized the stupid mistake I was making. I was removing my mediators and leaving the proxies. Crap, I was wondering why the data was still stale. Duh...amazing what a night of good sleep will do for you.

Thanks.
Logged
Pages: [1]
Print