Packageorg.spicefactory.parsley.command.impl
Classpublic class MappedCommandProxy
InheritanceMappedCommandProxy Inheritance AbstractMessageReceiver Inheritance Object
Implements MessageTarget

Parsley message target that executes a command when a message is received.



Public Properties
 PropertyDefined By
 Inheritedorder : int
[read-only] The execution order for this receiver.
AbstractMessageReceiver
 Inheritedselector : *
[read-only] An optional selector value to be used for selecting matching messages.
AbstractMessageReceiver
 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
  
Creates a new instance.
MappedCommandProxy
  
Handles a message for this target.
MappedCommandProxy
Constructor Detail
MappedCommandProxy()Constructor
public function MappedCommandProxy(factory:ManagedCommandFactory, context:Context, info:MessageReceiverInfo)

Creates a new instance.

Parameters
factory:ManagedCommandFactory — the factory to use for creating new commands
 
context:Context — the Context that should manage all commands executed by this proxy
 
info:MessageReceiverInfo — the type of message that should trigger command execution
Method Detail
handleMessage()method
public function handleMessage(processor:MessageProcessor):void

Handles a message for this target. The specified processor may be used to control the message processing, like canceling or suspending a message.

Parameters

processor:MessageProcessor — the processor for the message