Packageorg.spicefactory.parsley.command.impl
Classpublic class DefaultManagedCommandProxy
InheritanceDefaultManagedCommandProxy Inheritance DefaultCommandProxy Inheritance AbstractCommandExecutor Inheritance AbstractSuspendableCommand Inheritance AbstractCancellableCommand Inheritance AbstractAsyncCommand Inheritance flash.events.EventDispatcher
Implements ManagedCommandProxy

Default implementation of the ManagedCommandProxy interface.



Public Properties
 PropertyDefined By
 Inheritedactive : Boolean
[read-only] Indicates whether this command is currently executing.
AbstractAsyncCommand
 Inheritedcancellable : Boolean
[read-only] Indicates whether this executor can be cancelled.
AbstractCommandExecutor
  context : Context
[write-only] The Context the command belongs to.
DefaultManagedCommandProxy
 Inheriteddescription : String
[write-only] A description of the command executed by this proxy.
DefaultCommandProxy
 Inheriteddomain : ApplicationDomain
The domain to use in case reflection on the command classes this exeutor deals with is required.
AbstractCommandExecutor
  id : String
The id the command is registered with in the Context.
DefaultManagedCommandProxy
 Inheritedsuspendable : Boolean
[read-only] Indicates whether this executor can be suspended.
AbstractCommandExecutor
 Inheritedsuspended : Boolean
[read-only] Indicates whether this command is currently suspended.
AbstractSuspendableCommand
 Inheritedtarget : Command
The target command executed by this proxy.
DefaultCommandProxy
 Inheritedtimeout : uint
The timeout in milliseconds.
DefaultCommandProxy
 Inheritedtype : Class
[write-only] The type of comamnd that this proxy should execute.
DefaultCommandProxy
Protected Properties
 PropertyDefined By
 Inheriteddata : CommandData
[read-only] The data associated with this executor.
AbstractCommandExecutor
 Inheritedlifecycle : CommandLifecycle
[read-only] The lifecycle hook to use for the commands executed by this instance.
AbstractCommandExecutor
Public Methods
 MethodDefined By
  
DefaultManagedCommandProxy(context:Context = null, target:Command = null, id:String = null)
Creates a new instance.
DefaultManagedCommandProxy
 Inherited
addData(value:Object):void
Adds a value to this executor that can get passed to any command executed by this instance.
AbstractCommandExecutor
 Inherited
cancel():void
Cancels the command.
AbstractCancellableCommand
 Inherited
execute():void
Starts the execution of this command.
AbstractAsyncCommand
 Inherited
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.
AbstractCommandExecutor
 Inherited
resume():void
Resumes the command.
AbstractSuspendableCommand
 Inherited
suspend():void
Suspends the command.
AbstractSuspendableCommand
Protected Methods
 MethodDefined By
 Inherited
Invoked when a child command has completed its operation successfully.
AbstractCommandExecutor
 Inherited
complete(result:Object = null):void
Signals that this command has completed.
AbstractAsyncCommand
 Inherited
Creates a new instance holding the data commands executed by this instance will produce.
AbstractCommandExecutor
 Inherited
Creates a new instance of the lifecycle hook.
AbstractCommandExecutor
 Inherited
doCancel():void
Invoked when this command gets cancelled.
AbstractCancellableCommand
 Inherited
doExecute():void
Invoked when the command starts executing.
AbstractAsyncCommand
 Inherited
doResume():void
Invoked when this command gets resumed.
AbstractSuspendableCommand
 Inherited
doSuspend():void
Invoked when this command gets suspended.
AbstractSuspendableCommand
 Inherited
error(cause:Object = null):void
Signals an error condition and cancels the command.
AbstractAsyncCommand
 Inherited
Executes the specified command.
AbstractCommandExecutor
Property Detail
contextproperty
context:Context  [write-only]

The Context the command belongs to.


Implementation
    public function set context(value:Context):void
idproperty 
id:String

The id the command is registered with in the Context.


Implementation
    public function get id():String
    public function set id(value:String):void
Constructor Detail
DefaultManagedCommandProxy()Constructor
public function DefaultManagedCommandProxy(context:Context = null, target:Command = null, id:String = null)

Creates a new instance.

Parameters
context:Context (default = null) — the Context the command belongs to
 
target:Command (default = null) — the target command to be executed by this proxy
 
id:String (default = null) — the id the command is registered with in the Context