Facade

A base Singleton IFacade implementation.

Inheritance

ObjectFacade
Namespace: PureMVC.Patterns.FacadeAssembly: PureMVC in (PureMVC.dll)

Syntax

C#
public class Facade: IFacade,
	INotifier

Remarks

In PureMVC, the Facade class assumes these responsibilities:

  • Initializing the Model, View and Controller Singletons.
  • Providing all the methods defined by the IModel, IView, and 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

Constructors

Constructor.

Methods

Facade Singleton Factory method
Check if a Command is registered for a given Notification
Check if a Mediator is registered or not
Check if a Proxy is registered
Initialize the Controller.
Initialize the Singleton Facade instance.
Initialize the Model.
Initialize the View.
Notify Observers.
Register an ICommand with the Controller by Notification name.
Register a IMediator with the View.
Register an IProxy with the Model by name.
Remove a previously registered ICommand to INotification mapping from the Controller.
Remove an IMediator from the View.
Remove an IProxy from the Model by name.
Retrieve an IMediator from the View.
Retrieve an IProxy from the Model by name.
Create and send an INotification.

Fields

References to Controller
Singleton instance
Reference to Model
Message Constants
References to View

See also