| Package | sandy.commands |
| Interface | public interface Command |
| Implementors | Delegate |
Commands are named state-less when they can work
only from the passed-in event in the execute method without
having to define any parameters in the constructor.
Commands can be asynchronous by implementing the ASyncCommand
interface.
See also
| Method | Defined by | ||
|---|---|---|---|
|
execute(e:Event = null):void
Execute the request according to the current command data.
| Command | ||
| execute | () | method |
public function execute(e:Event = null):voidExecute the request according to the current command data.
Stateless commands may use the passed-in event object as data source for its execution. If the execution can't be performed because of unreachable data the command have to throw an error.
Parameterse:Event (default = null) — An event that will be used as data source by the command.
|
— Stateless command use the passed-in event
as data source for its execution, so the event
must provide the right data for the current
Command object.
|