PureMVC Framework for Haxe: API Documentation
Back | Index
class org.puremvc.haxe.patterns.facade.Facade
implements org.puremvc.haxe.interfaces.IFacade

A base Singleton `IFacade` implementation.

In PureMVC, the `Facade` class assumes these responsibilities:

- Initializing the `Model`, `View` and `Controller` Singletons.
- Providing all the methods defined by the `IModel, IView, & IController` interfaces.
- Providing the ability to override the specific `Model`, `View` and `Controller` Singletons created.
- Providing a single point of contact to the application for registering `Commands` and notifying `Observers`

function hasCommand(notificationName : String) : Bool
function hasMediator(mediatorName : String) : Bool
function hasProxy(proxyName : String) : Bool
function notifyObservers(notification : org.puremvc.haxe.interfaces.INotification) : Void
function registerCommand(notificationName : String, commandClassRef : Class<org.puremvc.haxe.interfaces.ICommand>) : Void
function registerMediator(mediator : org.puremvc.haxe.interfaces.IMediator) : Void
function registerProxy(proxy : org.puremvc.haxe.interfaces.IProxy) : Void
function removeCommand(notificationName : String) : Void
function removeMediator(mediatorName : String) : org.puremvc.haxe.interfaces.IMediator
function removeProxy(proxyName : String) : org.puremvc.haxe.interfaces.IProxy
function retrieveMediator(mediatorName : String) : org.puremvc.haxe.interfaces.IMediator
function retrieveProxy(proxyName : String) : org.puremvc.haxe.interfaces.IProxy
function sendNotification(notificationName : String, ?body : Dynamic, ?type : String) : Void
static function getInstance() : org.puremvc.haxe.interfaces.IFacade

Back | Index