Packageorg.spicefactory.parsley.core.messaging.impl
Classpublic class DefaultMessage
InheritanceDefaultMessage Inheritance Object
Implements Message

Default implementation of the Message interface.



Public Properties
 PropertyDefined By
  instance : Object
[read-only] The actual message instance.
DefaultMessage
  selector : *
The selector to use to determine matching receivers.
DefaultMessage
  senderContext : Context
[read-only] The Context the message was dispatched from.
DefaultMessage
  type : ClassInfo
[read-only] The type of the message.
DefaultMessage
Public Methods
 MethodDefined By
  
DefaultMessage(instance:Object, type:ClassInfo, selector:*, senderContext:Context = null)
Creates a new instance.
DefaultMessage
Property Detail
instanceproperty
instance:Object  [read-only]

The actual message instance.


Implementation
    public function get instance():Object
selectorproperty 
selector:*

The selector to use to determine matching receivers.


Implementation
    public function get selector():*
    public function set selector(value:any):void
senderContextproperty 
senderContext:Context  [read-only]

The Context the message was dispatched from. This value may be null. It is only set if the message was sent by an object managed by Parsley through one of the available options for dispatching a message (like ManagedEvents or MessageDispatchers). If the message was dispatched programmatically using the ScopeManager API, then the sender Context is unknown.


Implementation
    public function get senderContext():Context
typeproperty 
type:ClassInfo  [read-only]

The type of the message.


Implementation
    public function get type():ClassInfo
Constructor Detail
DefaultMessage()Constructor
public function DefaultMessage(instance:Object, type:ClassInfo, selector:*, senderContext:Context = null)

Creates a new instance.

Parameters
instance:Object — the message instance
 
type:ClassInfo — the type of the message
 
selector:* — the selector to use to determine matching receivers
 
senderContext:Context (default = null) — the Context the message was dispatched from