Packageorg.spicefactory.parsley.core.messaging
Interfacepublic interface MessageRouter
Implementors DefaultMessageRouter

The central message routing facility.



Public Methods
 MethodDefined By
  
Dispatches the specified message, processing all interceptors, handlers and bindings that have registered for that message type.
MessageRouter
  
Processes the observers registered for the specified command and its current status.
MessageRouter
Method Detail
dispatchMessage()method
public function dispatchMessage(message:Message, cache:MessageReceiverCache):void

Dispatches the specified message, processing all interceptors, handlers and bindings that have registered for that message type.

Parameters

message:Message — the message to dispatch
 
cache:MessageReceiverCache — the cache of receivers for the message type

observeCommand()method 
public function observeCommand(command:ObservableCommand, typeCache:MessageReceiverCache, triggerCache:MessageReceiverCache):void

Processes the observers registered for the specified command and its current status.

Parameters

command:ObservableCommand — the command to process the observers for
 
typeCache:MessageReceiverCache — the cache of observers matching by the type of the command
 
triggerCache:MessageReceiverCache — the cache of observers matching by the message type that triggered the command