Package | org.spicefactory.parsley.comobserver.receiver |
Class | public class DefaultCommandObserver |
Inheritance | DefaultCommandObserver AbstractMethodReceiver AbstractObjectProviderReceiver AbstractMessageReceiver Object |
Implements | CommandObserver |
Property | Defined By | ||
---|---|---|---|
kind : MessageReceiverKind [read-only]
The status this observer is interested in. | DefaultCommandObserver | ||
order : int [read-only]
The execution order for this receiver. | AbstractMessageReceiver | ||
provider : ObjectProvider [read-only]
The provider for the actual instance handling the message. | AbstractObjectProviderReceiver | ||
selector : * [read-only]
An optional selector value to be used for selecting matching messages. | AbstractMessageReceiver | ||
targetMethod : Method [read-only]
The method to invoke for matching messages. | AbstractMethodReceiver | ||
type : Class [read-only]
The class or interface of the message. | AbstractMessageReceiver |
Method | Defined By | ||
---|---|---|---|
DefaultCommandObserver(info:MessageReceiverInfo, kind:MessageReceiverKind, supportsResult:Boolean = true, supportsNestedCommands:Boolean = false)
Creates a new instance. | DefaultCommandObserver | ||
Initializes this receiver, passing the target object
provider and method. | AbstractMethodReceiver | ||
observeCommand(processor:CommandObserverProcessor):void
Invoked when a matching command starts or finishes its execution. | DefaultCommandObserver | ||
toString():String | AbstractMethodReceiver |
kind | property |
kind:MessageReceiverKind
[read-only] The status this observer is interested in.
public function get kind():MessageReceiverKind
DefaultCommandObserver | () | Constructor |
public function DefaultCommandObserver(info:MessageReceiverInfo, kind:MessageReceiverKind, supportsResult:Boolean = true, supportsNestedCommands:Boolean = false)
Creates a new instance.
Parametersinfo:MessageReceiverInfo — the mapping information for the receiver
| |
kind:MessageReceiverKind — the command status this object is interested in
| |
supportsResult:Boolean (default = true ) — whether a result parameter is supported in the handler method
| |
supportsNestedCommands:Boolean (default = false ) — whether this observer should also react to nested command completion
|
observeCommand | () | method |
public function observeCommand(processor:CommandObserverProcessor):void
Invoked when a matching command starts or finishes its execution. The specified processor may be used to control the processing of remaining observers, like canceling or suspending the processor.
Parameters
processor:CommandObserverProcessor — the processor for the command observer
|