Packageorg.spicefactory.parsley.messaging.receiver
Classpublic class DefaultMessageBinding
InheritanceDefaultMessageBinding Inheritance AbstractPropertyReceiver Inheritance AbstractObjectProviderReceiver Inheritance AbstractMessageReceiver Inheritance Object
Implements MessageTarget

A message target where a property value of matching messages is bound to a property of the target instance.



Public Properties
 PropertyDefined By
  messageProperty : Property
[read-only] The property of the message that should be bound to the target property.
DefaultMessageBinding
 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
 InheritedtargetProperty : Property
[read-only] The property to process for matching messages.
AbstractPropertyReceiver
 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
  
DefaultMessageBinding(info:MessageReceiverInfo, messagePropertyName:String)
Creates a new instance.
DefaultMessageBinding
  
Handles a message for this target.
DefaultMessageBinding
 Inherited
init(provider:ObjectProvider, property:Property):void
Initializes this receiver, passing the target object provider and property.
AbstractPropertyReceiver
 Inherited
toString():String
AbstractPropertyReceiver
Protected Methods
 MethodDefined By
 Inherited
Sets the provider for target instances for this receiver.
AbstractObjectProviderReceiver
Property Detail
messagePropertyproperty
messageProperty:Property  [read-only]

The property of the message that should be bound to the target property.


Implementation
    public function get messageProperty():Property
Constructor Detail
DefaultMessageBinding()Constructor
public function DefaultMessageBinding(info:MessageReceiverInfo, messagePropertyName:String)

Creates a new instance.

Parameters
info:MessageReceiverInfo — the mapping information for this receiver
 
messagePropertyName:String — the name of the property of the message that should be bound to the target property
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