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: multiton access of application facade.  (Read 3756 times)
landed
Full Member
***
Posts: 37


View Profile Email
« on: August 18, 2009, 03:22:37 »

facade.retrieveMediator(ApplicationFacade.getInstance( NAME ).startup( this ))

I was told the above is how to access the correct application facade in a multiton however startup doesnt seem to be a valid method for that ?

thanks for help
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 on: August 18, 2009, 08:02:00 »

Do not attempt to access the facades of other cores. This is not a valid way to communicate with the other core. Use interfaces or pipes instead. Why? You break the encapsulation of the module if you attempt to access classes inside it, thereby building dependencies between the modules. Each module should be capable of starting itself up when appropriate.

-=Cliff>
Logged
Pages: [1]
Print