Packageorg.spicefactory.parsley.comobserver.receiver
Classpublic class DefaultCommandObserver
InheritanceDefaultCommandObserver Inheritance AbstractMethodReceiver Inheritance AbstractObjectProviderReceiver Inheritance AbstractMessageReceiver Inheritance Object
Implements CommandObserver

Default implementation of the CommandObserver interface.



Public Properties
 PropertyDefined By
  kind : MessageReceiverKind
[read-only] The status this observer is interested in.
DefaultCommandObserver
 Inheritedorder : int
[read-only] The execution order for this receiver.
AbstractMessageReceiver
 Inheritedprovider : ObjectProvider
[read-only] The provider for the actual instance handling the message.
AbstractObjectProviderReceiver
 Inheritedselector : *
[read-only] An optional selector value to be used for selecting matching messages.
AbstractMessageReceiver
 InheritedtargetMethod : Method
[read-only] The method to invoke for matching messages.
AbstractMethodReceiver
 Inheritedtype : Class
[read-only] The class or interface of the message.
AbstractMessageReceiver
Protected Properties
 PropertyDefined By
 Inheritedinfo : MessageReceiverInfo
[read-only] The receiver configuration in one (mutable) model object.
AbstractMessageReceiver
Public Methods
 MethodDefined By
  
DefaultCommandObserver(info:MessageReceiverInfo, kind:MessageReceiverKind, supportsResult:Boolean = true, supportsNestedCommands:Boolean = false)
Creates a new instance.
DefaultCommandObserver
 Inherited
init(provider:ObjectProvider, method:Method):void
Initializes this receiver, passing the target object provider and method.
AbstractMethodReceiver
  
Invoked when a matching command starts or finishes its execution.
DefaultCommandObserver
 Inherited
toString():String
AbstractMethodReceiver
Protected Methods
 MethodDefined By
 Inherited
deduceMessageTypeFromParameter(method:Method, paramIndex:uint):void
Returns the Class to use as the message type.
AbstractMethodReceiver
 Inherited
Sets the provider for target instances for this receiver.
AbstractObjectProviderReceiver
Property Detail
kindproperty
kind:MessageReceiverKind  [read-only]

The status this observer is interested in.


Implementation
    public function get kind():MessageReceiverKind
Constructor Detail
DefaultCommandObserver()Constructor
public function DefaultCommandObserver(info:MessageReceiverInfo, kind:MessageReceiverKind, supportsResult:Boolean = true, supportsNestedCommands:Boolean = false)

Creates a new instance.

Parameters
info: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
Method Detail
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