Package | org.puremvc.as3.patterns.command |
Class | public class SimpleCommand |
Inheritance | SimpleCommand Notifier |
Implements | ICommand, INotifier |
ICommand
implementation.
Your subclass should override the execute
method where your business logic will handle the INotification
.
See also
Method | Defined by | ||
---|---|---|---|
execute(notification:INotification):void
Fulfill the use-case initiated by the given
INotification . | SimpleCommand | ||
sendNotification(notificationName:String, body:Object = null, type:String = null):void
Create and send an
INotification . | Notifier |
execute | () | method |
public function execute(notification:INotification):void
Fulfill the use-case initiated by the given INotification
.
In the Command Pattern, an application use-case typically
begins with some user action, which results in an INotification
being broadcast, which
is handled by business logic in the execute
method of an
ICommand
.
notification:INotification — the INotification to handle.
|