Packageorg.spicefactory.parsley.processor.messaging.receiver
Classpublic class AbstractMessageHandler
InheritanceAbstractMessageHandler Inheritance AbstractMethodReceiver Inheritance AbstractObjectProviderReceiver Inheritance AbstractMessageReceiver Inheritance Object
Subclasses DefaultCommandTarget, MessageHandler

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



Public Properties
 PropertyDefined By
 InheritedmessageType : Class
[read-only] The class or interface of the message.
AbstractMessageReceiver
 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
Public Methods
 MethodDefined By
  
AbstractMessageHandler(provider:ObjectProvider, methodName:String, selector:*, messageType:ClassInfo = null, messageProperties:Array = null, order:int, supportsProcessorParam:Boolean = false)
Creates a new instance.
AbstractMessageHandler
Protected Methods
 MethodDefined By
 Inherited
getMessageTypeFromParameter(method:Method, paramIndex:uint, explicitType:ClassInfo = null):Class
Returns the Class to use as the message type.
AbstractMethodReceiver
  
AbstractMessageHandler
Constructor Detail
AbstractMessageHandler()Constructor
public function AbstractMessageHandler(provider:ObjectProvider, methodName:String, selector:*, messageType:ClassInfo = null, messageProperties:Array = null, order:int, supportsProcessorParam:Boolean = false)

Creates a new instance.

Parameters
provider:ObjectProvider — the provider for the instance that contains the target method
 
methodName:String — the name of the target method that should be invoked
 
selector:* (default = NaN) — an optional selector value to be used for selecting matching message targets
 
messageType:ClassInfo (default = null) — the type of the message or null if it should be autodetected by the parameter of the target method
 
messageProperties:Array (default = null) — the list of names of properties of the message that should be used as method parameters
 
order:int (default = NaN) — the execution order for this receiver
 
supportsProcessorParam:Boolean (default = false) — whether this handler type supports an additional parameter of type MessageProcessor
Method Detail
invokeMethod()method
protected function invokeMethod(processor:MessageProcessor):*

Parameters

processor:MessageProcessor

Returns
*