Packageorg.spicefactory.lib.util
Classpublic class Command
SubclassesCommandChain

A Command wraps a method and its parameters for deferred execution.



Public Methods
 MethodDefined by
  
Command(method:Function, params:Array = null)
Creates a new Command for deferred execution.
Command
  
execute():*
Executes the Command.
Command
Constructor detail
Command()constructor
public function Command(method:Function, params:Array = null)

Creates a new Command for deferred execution.

Parameters
method:Function — the method to execute
 
params:Array (default = null) — the parameters to pass to the method
Method detail
execute()method
public function execute():*

Executes the Command.

Returns
* — the return value of the executed method