IController

The interface definition for a PureMVC Controller.
Namespace: PureMVC.InterfacesAssembly: PureMVC in (PureMVC.dll)

Syntax

C#
public interface IController 

Remarks

In PureMVC, an IController implementor follows the 'Command and Controller' strategy, and assumes these responsibilities:

  • Remembering which ICommands are intended to handle which INotifications.
  • Registering itself as an IObserver with the View for each INotification that it has an ICommand mapping for.
  • Creating a new instance of the proper ICommand to handle a given INotification when notified by the View.
  • Calling the ICommand's execute method, passing in the INotification.

Methods

Execute the ICommand previously registered as the handler for INotifications with the given notification name.
Check if a Command is registered for a given Notification
Register a particular ICommand class as the handler for a particular INotification.
Remove a previously registered ICommand to INotification mapping.

See also