Packageorg.spicefactory.parsley.core.messaging.impl
Classpublic class DefaultMessageRouter
InheritanceDefaultMessageRouter Inheritance Object
Implements MessageRouter, InitializingService

Default implementation of the MessageRouter interface.



Public Methods
 MethodDefined By
  
Dispatches the specified message, processing all interceptors, handlers and bindings that have registered for that message type.
DefaultMessageRouter
  
init(info:BootstrapInfo):void
Invoked once after the service has been instantiated.
DefaultMessageRouter
  
Processes the observers registered for the specified command and its current status.
DefaultMessageRouter
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

init()method 
public function init(info:BootstrapInfo):void

Invoked once after the service has been instantiated. The BootstrapInfo instance passed to this method gives access to the settings and collaborating services.

Parameters

info:BootstrapInfo — the environment of the Context building process

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