How can I get every context's model between Contexts?

woaibujian's Avatar


07 Dec, 2009 03:39 AM

In puremvc every Facade has its own proxy, and they communicate with its Facade.

I mean why there is not a "retrieveProxy" method in Context?

  1. Support Staff 1 Posted by Shaun Smith on 07 Dec, 2009 03:44 PM

    Shaun Smith's Avatar

    Robotlegs does not make use of the Facade design pattern. The Context is just a place to Bootstrap your application. If you want to share a Model between your application Actors, you would set it up for injection (in the Context's startup method, or in a Command):


    And then depend on it wherever you need it:

    public var myModel:MyModel;

    Declaring dependencies is a much better approach than reaching into a container/registry (the Facade) and grabbing what you need.

  2. Shaun Smith closed this discussion on 11 Dec, 2009 02:56 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac