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

ManagedCommandProxy implementation that knows how to create command from an ObjectDefinition.



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
 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
[read-only] The id the command is registered with in the Context.
DefinitionBasedCommandProxy
 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
  
Creates a new instance.
DefinitionBasedCommandProxy
 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
idproperty
id:String  [read-only]

The id the command is registered with in the Context.


Implementation
    public function get id():String
Constructor Detail
DefinitionBasedCommandProxy()Constructor
public function DefinitionBasedCommandProxy(target:DynamicObjectDefinition)

Creates a new instance.

Parameters
target:DynamicObjectDefinition — the definition of the target command