PureMVC Architects Lounge

Announcements and General Discussion => General Discussion => Topic started by: landed on August 18, 2009, 03:22:37



Title: multiton access of application facade.
Post by: landed 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


Title: Re: multiton access of application facade.
Post by: puremvc 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>