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:

function hasCommand(notificationName : String) : Bool
Check if a Command is registered for a given Notification
function hasMediator(mediatorName : String) : Bool
Check if a Mediator is registered or not
function hasProxy(proxyName : String) : Bool
Check if a Proxy is registered
function notifyObservers(notification : org.puremvc.haxe.interfaces.INotification) : Void
Notify Observers.
function registerCommand(notificationName : String, commandClassRef : Class<org.puremvc.haxe.interfaces.ICommand>) : Void
Register an ICommand with the Controller by Notification name.
function registerMediator(mediator : org.puremvc.haxe.interfaces.IMediator) : Void
Register a IMediator with the View.
function registerProxy(proxy : org.puremvc.haxe.interfaces.IProxy) : Void
Register an IProxy with the Model by name.
function removeCommand(notificationName : String) : Void
Remove a previously registered ICommand to INotification mapping from the Controller.
function removeMediator(mediatorName : String) : org.puremvc.haxe.interfaces.IMediator
Remove an IMediator from the View.
function removeProxy(proxyName : String) : org.puremvc.haxe.interfaces.IProxy
Remove an IProxy from the Model by name.
function retrieveMediator(mediatorName : String) : org.puremvc.haxe.interfaces.IMediator
Retrieve an IMediator from the View.
function retrieveProxy(proxyName : String) : org.puremvc.haxe.interfaces.IProxy
Retrieve an IProxy from the Model by name.
function sendNotification(notificationName : String, ?body : Dynamic, ?type : String) : Void

Create and send an INotification.

Keeps us from having to construct new notification instances in our implementation code.

static function getInstance() : org.puremvc.haxe.interfaces.IFacade
Facade Singleton Factory method
Back | Index