Packageorg.spicefactory.parsley.core.messaging
Interfacepublic interface MessageReceiverCache
Implementors DefaultMessageReceiverCache

A cache of receivers for a particular message type which MessageRouter implementations use for performance optimizations.



Public Methods
 MethodDefined By
  
getReceivers(kind:MessageReceiverKind, selector:*):Array
Returns the receivers for the specified receiver kind and selector value.
MessageReceiverCache
  
getSelectorValue(message:Object):*
Returns the value of the selector property of the specified message instance.
MessageReceiverCache
Method Detail
getReceivers()method
public function getReceivers(kind:MessageReceiverKind, selector:*):Array

Returns the receivers for the specified receiver kind and selector value.

Parameters

kind:MessageReceiverKind — the kind of receivers to return
 
selector:* (default = NaN) — the selector to use for finding matching receivers

Returns
Array — the receivers for the specified receiver kind and messag
getSelectorValue()method 
public function getSelectorValue(message:Object):*

Returns the value of the selector property of the specified message instance.

Parameters

message:Object — the message instance

Returns
* — the value of the selector property of the specified message instance