IController The interface definition for a PureMVC Controller.
IController
Controller
In PureMVC, an IController implementor follows the 'Command and Controller' strategy, and assumes these responsibilities:
Remembering which ICommands are intended to handle which INotifications.
ICommands
INotifications
Registering itself as an IObserver with the View for each INotification that it has an ICommand mapping for.
IObserver
INotification
ICommand
Creating a new instance of the proper ICommand to handle a given INotification when notified by the View.
View
Calling the ICommand's execute method, passing in the INotification.
Execute the ICommand previously registered as the handler for INotifications with the given notification name.
the INotification to execute the associated ICommand for
Check if a Command is registered for a given Notification
Command
Notification
The name of the notification to check.
true if a command is registered for the notification name, false otherwise.
true
false
Register a particular ICommand class as the handler for a particular INotification.
the name of the INotification
A factory that returns ICommand
Remove a previously registered ICommand to INotification mapping.
the name of the INotification to remove the ICommand mapping for
IController
The interface definition for a PureMVCController
.In PureMVC, an
IController
implementor follows the 'Command and Controller' strategy, and assumes these responsibilities:Remembering which
ICommands
are intended to handle whichINotifications
.Registering itself as an
IObserver
with the View for eachINotification
that it has anICommand
mapping for.Creating a new instance of the proper
ICommand
to handle a givenINotification
when notified by theView
.Calling the
ICommand
's execute method, passing in theINotification
.IController