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
  
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(message:Message, kind:MessageReceiverKind):Array

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

Parameters

message:Message — the message to retrieve the receivers for
 
kind:MessageReceiverKind — the kind of receivers to return

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