Package | org.spicefactory.parsley.command.impl |
Class | public class ManagedCommandLifecycle |
Inheritance | ManagedCommandLifecycle DefaultCommandLifecycle Object |
Property | Defined By | ||
---|---|---|---|
trigger : Message [read-only]
The message that triggered the command. | ManagedCommandLifecycle |
Method | Defined By | ||
---|---|---|---|
Creates a new instance. | ManagedCommandLifecycle | ||
afterCompletion(command:Object, result:CommandResult):void
Lifecycle hook to be invoked after the command finished execution. | DefaultCommandLifecycle | ||
beforeExecution(command:Object, data:CommandData):void
Lifecycle hook to be invoked immediately before the command gets executed. | DefaultCommandLifecycle | ||
createInstance(type:Class, data:CommandData):Object
Creates a new command instance of the specified type. | DefaultCommandLifecycle |
trigger | property |
trigger:Message
[read-only] The message that triggered the command. This property is null when the command was started programmatically.
public function get trigger():Message
ManagedCommandLifecycle | () | Constructor |
public function ManagedCommandLifecycle(context:Context, root:ManagedCommandProxy, trigger:Message = null)
Creates a new instance.
Parameterscontext: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)
|