IFacade class

The interface definition for a PureMVC MultiCore Facade.

The Facade Pattern suggests providing a single class to act as a central point of communication for a subsystem.

In PureMVC, the IFacade acts as an interface between the core MVC actors IModel, IView, IController, and the rest of your application, which (aside from view components and data objects) is mostly expressed with ICommands, IMediators, and IProxys.

This means you don't need to communicate with the IModel, IView, IController instances directly, you can just go through the IFacade. And conveniently, ICommands, IMediators, and IProxys all have a built-in reference to their IFacade after initialization, so they're all plugged in and ready to communicate with each other.

See IModel, IView, IController, IProxy, IMediator, ICommand, INotification





controller IController
This IFacade's IController
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
model IModel
This IFacade's IModel
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
view IView
This IFacade's IView
read / write


executeCommand(String noteName, [dynamic body = null, String type = null]) → void
hasCommand(String noteName) bool
Check if an ICommand is registered for a given INotification name with the IController. [...]
hasMediator(String mediatorName) bool
Check if an IMediator is registered with the IView. [...]
hasProxy(String proxyName) bool
Check if an IProxy is registered with the IModel. [...]
initializeNotifier(String key) → void
Initialize this INotifier instance. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
notifyObservers(INotification notification) → void
Notify IObservers. [...]
registerCommand(String noteName, Function commandFactory) → void
Register an INotification to ICommand mapping with the IController. [...]
registerMediator(IMediator mediator) → void
Register an IMediator instance with the IView. [...]
registerObserver(String noteName, IObserver observer) → void
Register an IObserver to be notified of INotifications with a given name. [...]
registerProxy(IProxy proxy) → dynamic
  • Register an IProxy instance with the IModel. *
      • Param proxy - an object reference to be held by the IModel.
  • removeCommand(String noteName) → void
    Remove a previously registered INotification to ICommand mapping from the IController. [...]
    removeMediator(String mediatorName) IMediator
    Remove an IMediator from the IView. [...]
    removeObserver(String noteName, Object notifyContext) → void
    Remove an IObserver from the list for a given INotification name. [...]
    removeProxy(String proxyName) IProxy
    Remove an IProxy instance from the IModel. [...]
    retrieveMediator(String mediatorName) IMediator
    Retrieve an IMediator from the IView. [...]
    retrieveProxy(String proxyName) IProxy
    Retrieve an IProxy instance from the IModel. [...]
    sendNotification(String noteName, [dynamic body, String type]) → void
    Send an INotification. [...]
    toString() String
    A string representation of this object. [...]


    operator ==(Object other) bool
    The equality operator. [...]