Packageorg.puremvc.as3.multicore.patterns.command
Classpublic class SimpleCommand
InheritanceSimpleCommand Inheritance Notifier
ImplementsICommand, INotifier

A base ICommand implementation.

Your subclass should override the execute method where your business logic will handle the INotification.

See also

Controller
Notification
MacroCommand


Protected Properties
 PropertyDefined by
 Inheritedfacade : IFacade
Notifier
 InheritedmultitonKey : String
Notifier
Public Methods
 MethodDefined by
  
execute(notification:INotification):void
Fulfill the use-case initiated by the given INotification.
SimpleCommand
 Inherited
initializeNotifier(key:String):void
Initialize this INotifier instance.
Notifier
 Inherited
sendNotification(notificationName:String, body:Object = null, type:String = null):void
Create and send an INotification.
Notifier
Protected Constants
 ConstantDefined by
 InheritedMULTITON_MSG : String = "multitonKey for this Notifier not yet initialized!"
Notifier
Method detail
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.

Parameters
notification:INotification — the INotification to handle.