Packageorg.spicefactory.parsley.messaging.receiver
Classpublic class DefaultMessageHandler
InheritanceDefaultMessageHandler Inheritance AbstractMethodReceiver Inheritance AbstractObjectProviderReceiver Inheritance AbstractMessageReceiver Inheritance Object
Implements MessageTarget

Abstract base class for regular message handlers where the message is simply passed to a method on the target instance.



Public Properties
 PropertyDefined By
 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
  
DefaultMessageHandler(info:MessageReceiverInfo, messageProperties:Array = null)
Creates a new instance.
DefaultMessageHandler
  
Handles a message for this target.
DefaultMessageHandler
 Inherited
init(provider:ObjectProvider, method:Method):void
Initializes this receiver, passing the target object provider and method.
AbstractMethodReceiver
 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
Constructor Detail
DefaultMessageHandler()Constructor
public function DefaultMessageHandler(info:MessageReceiverInfo, messageProperties:Array = null)

Creates a new instance.

Parameters
info:MessageReceiverInfo — the mapping information for the receiver
 
messageProperties:Array (default = null) — the list of names of properties of the message that should be used as method parameters
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