Packageorg.spicefactory.lib.command
Interfacepublic interface CommandExecutor extends SuspendableCommand, CancellableCommand, AsyncCommand
Implementors AbstractCommandExecutor

Represents a command that executes one or more other commands.

This is the base interface for all command types that group, link or proxy other commands. Since these commands may implement any of the optional Command subinterface, this interface introduces properties that determine the capabilities of this executor.



Public Properties
 PropertyDefined By
 Inheritedactive : Boolean
[read-only] Indicates whether this command is currently executing.
AsyncCommand
  cancellable : Boolean
[read-only] Indicates whether this executor can be cancelled.
CommandExecutor
  suspendable : Boolean
[read-only] Indicates whether this executor can be suspended.
CommandExecutor
 Inheritedsuspended : Boolean
[read-only] Indicates whether this command is currently suspended.
SuspendableCommand
Public Methods
 MethodDefined By
 Inherited
cancel():void
Cancels the command.
CancellableCommand
 Inherited
execute():void
Executes the command.
Command
  
prepare(lifecycle:CommandLifecycle, data:CommandData):void
Method that may be called by frameworks before executing this command to hook into the lifecycle and data handling of this executor.
CommandExecutor
 Inherited
resume():void
Resumes the command.
SuspendableCommand
 Inherited
suspend():void
Suspends the command.
SuspendableCommand
Property Detail
cancellableproperty
cancellable:Boolean  [read-only]

Indicates whether this executor can be cancelled.

This property should be true when all currently active commands can be cancelled.


Implementation
    public function get cancellable():Boolean
suspendableproperty 
suspendable:Boolean  [read-only]

Indicates whether this executor can be suspended.

This property should be true when all currently active commands can be suspended.


Implementation
    public function get suspendable():Boolean
Method Detail
prepare()method
public function prepare(lifecycle:CommandLifecycle, data:CommandData):void

Method that may be called by frameworks before executing this command to hook into the lifecycle and data handling of this executor.

Parameters

lifecycle:CommandLifecycle — the lifecycle hooks this executor should use
 
data:CommandData — data that can be passed to commands executed by this instance