In PureMVC, the
Controller class follows the
'Command and Controller' strategy, and assumes these responsibilities:
ICommands are intended to handle which
INotificationthat it has an
ICommandto handle a given
INotificationwhen notified by the
executemethod, passing in the
Your application must register
ICommands with the Controller.
The simplest way is to subclass
and use its
initializeController method to add your registrations.
ICommandhas previously been registered to handle a the given
INotification, then it is executed.
Register a particular
ICommand class as the handler for a particular
ICommand has already been registered to
INotifications with this name, it is no longer
used, the new
ICommand is used instead.
The Observer for the new ICommand is only created if this the first time an ICommand has been regisered for this Notification name.
ControllerSingleton Factory method.