PureMVC AS3 Framework - [Standard Version] | All Packages | All Classes | Index | Frames No Frames |
Class SimpleCommand

Package | org.puremvc.as3.patterns.command
Class | public class SimpleCommand
Inheritance | SimpleCommand Notifier
Implements | ICommand, 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
Hide Inherited Protected Properties
Show Inherited Protected Properties

| Property | Defined by
--- | --- | ---
|  | facade : IFacade | Notifier

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| 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

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.