Package | org.spicefactory.parsley.core.command.impl |
Class | public class DefaultCommandObserverProcessor |
Inheritance | DefaultCommandObserverProcessor DefaultMessageProcessor Object |
Implements | CommandObserverProcessor |
Property | Defined By | ||
---|---|---|---|
command : Object [read-only]
The actual command instance. | DefaultCommandObserverProcessor | ||
commandStatus : CommandStatus [read-only]
The status of the command. | DefaultCommandObserverProcessor | ||
message : Message [read-only]
The message instance. | DefaultMessageProcessor | ||
result : Object [read-only]
The result produced by the command. | DefaultCommandObserverProcessor | ||
root : Boolean [read-only]
Indicates whether this processor handles a root command or a nested command. | DefaultCommandObserverProcessor | ||
state : MessageState [read-only]
The current state of this processor. | DefaultMessageProcessor |
Method | Defined By | ||
---|---|---|---|
DefaultCommandObserverProcessor(observable:ObservableCommand, typeCache:MessageReceiverCache, triggerCache:MessageReceiverCache, settings:MessageSettings)
Creates a new instance. | DefaultCommandObserverProcessor | ||
cancel():void
Cancels processing of this message. | DefaultMessageProcessor | ||
changeResult(result:Object, error:Boolean = false):void
Changes the result that the command produced. | DefaultCommandObserverProcessor | ||
proceed():void | DefaultMessageProcessor | ||
resume():void
Resumes with message processing, invoking the next receiver. | DefaultMessageProcessor | ||
rewind():void
Rewinds the processor so it will start with the first interceptor or handler again
the next time the proceed method gets invoked. | DefaultMessageProcessor | ||
sendResponse(msg:Object, selector:* = null):void
Sends the response to the Context the message originated from. | DefaultMessageProcessor | ||
suspend():void
Suspends processing of the message. | DefaultMessageProcessor |
command | property |
command:Object
[read-only] The actual command instance.
public function get command():Object
commandStatus | property |
commandStatus:CommandStatus
[read-only] The status of the command.
public function get commandStatus():CommandStatus
result | property |
result:Object
[read-only] The result produced by the command.
public function get result():Object
root | property |
root:Boolean
[read-only] Indicates whether this processor handles a root command or a nested command. This property is true if the command is a simple standalone command or the root command of a sequence or flow. It is flow if it is a command nested in a sequence or flow.
public function get root():Boolean
DefaultCommandObserverProcessor | () | Constructor |
public function DefaultCommandObserverProcessor(observable:ObservableCommand, typeCache:MessageReceiverCache, triggerCache:MessageReceiverCache, settings:MessageSettings)
Creates a new instance.
Parametersobservable:ObservableCommand — the command to handle observers for
| |
typeCache:MessageReceiverCache — the receiver selection cache corresponding to the command type
| |
triggerCache:MessageReceiverCache — the receiver selection cache corresponding to the type of the trigger message
| |
settings:MessageSettings — the settings for this processor
|
changeResult | () | method |
public function changeResult(result:Object, error:Boolean = false):void
Changes the result that the command produced. Subsequent command observers (if any) will receive the new result. Observers that had already been processed will not get invoked a second time.
Parameters
result:Object — the new result to pass to subsequent command observers
| |
error:Boolean (default = false ) — true if the result represents an error
|