PureMVC Framework for haXe: API Documentation
Back | Index
class org.puremvc.haxe.multicore.patterns.facade.Facade
implements org.puremvc.haxe.multicore.interfaces.IFacade
A base Multiton IFacade implementation.
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 initializeNotifier(key : String) : Void

Set the Multiton key for this facade instance.

Not called directly, but instead from the constructor when getInstance is invoked. It is necessary to be public in order to implement INotifier.

function notifyObservers(notification : org.puremvc.haxe.multicore.interfaces.INotification) : Void
Notify Observers.
function registerCommand(notificationName : String, commandClassRef : Class<org.puremvc.haxe.multicore.interfaces.ICommand>) : Void
Register an ICommand with the Controller by Notification name.
function registerMediator(mediator : org.puremvc.haxe.multicore.interfaces.IMediator) : Void
Register a IMediator with the View.
function registerProxy(proxy : org.puremvc.haxe.multicore.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 removeCore(key : String) : Void
Remove a Core
function removeMediator(mediatorName : String) : org.puremvc.haxe.multicore.interfaces.IMediator
Remove an IMediator from the View.
function removeProxy(proxyName : String) : org.puremvc.haxe.multicore.interfaces.IProxy
Remove an IProxy from the Model by name.
function retrieveMediator(mediatorName : String) : org.puremvc.haxe.multicore.interfaces.IMediator
Retrieve an IMediator from the View.
function retrieveProxy(proxyName : String) : org.puremvc.haxe.multicore.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(key : String) : org.puremvc.haxe.multicore.interfaces.IFacade
Facade Multiton Factory method
Back | Index