Packageorg.spicefactory.parsley.command.impl
Classpublic class ManagedCommandLifecycle
InheritanceManagedCommandLifecycle Inheritance DefaultCommandLifecycle Inheritance Object

Extension of the standalone CommandLifecycle from Spicelib that deals with adding and removing commands to/from the Context during execution and passing them to the CommandManager.



Public Properties
 PropertyDefined By
  trigger : Message
[read-only] The message that triggered the command.
ManagedCommandLifecycle
Public Methods
 MethodDefined By
  
Creates a new instance.
ManagedCommandLifecycle
 Inherited
afterCompletion(command:Object, result:CommandResult):void
Lifecycle hook to be invoked after the command finished execution.
DefaultCommandLifecycle
 Inherited
beforeExecution(command:Object, data:CommandData):void
Lifecycle hook to be invoked immediately before the command gets executed.
DefaultCommandLifecycle
 Inherited
createInstance(type:Class, data:CommandData):Object
Creates a new command instance of the specified type.
DefaultCommandLifecycle
Property Detail
triggerproperty
trigger:Message  [read-only]

The message that triggered the command. This property is null when the command was started programmatically.


Implementation
    public function get trigger():Message
Constructor Detail
ManagedCommandLifecycle()Constructor
public function ManagedCommandLifecycle(context:Context, root:ManagedCommandProxy, trigger:Message = null)

Creates a new instance.

Parameters
context:Context — the Context all commands should be added to during execution
 
root:ManagedCommandProxy — the root command this lifecycle gets applied to
 
trigger:Message (default = null) — the message that triggered the command (if any)