Package | org.spicefactory.parsley.core.messaging.impl |
Class | public class DefaultMessage |
Inheritance | DefaultMessage Object |
Implements | Message |
Property | Defined 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 |
Method | Defined By | ||
---|---|---|---|
Creates a new instance. | DefaultMessage |
instance | property |
instance:Object
[read-only] The actual message instance.
public function get instance():Object
selector | property |
selector:*
The selector to use to determine matching receivers.
public function get selector():*
public function set selector(value:any):void
senderContext | property |
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.
public function get senderContext():Context
type | property |
type:ClassInfo
[read-only] The type of the message.
public function get type():ClassInfo
DefaultMessage | () | Constructor |
public function DefaultMessage(instance:Object, type:ClassInfo, selector:*, senderContext:Context = null)
Creates a new instance.
Parametersinstance: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
|