Package | org.spicefactory.parsley.core.messaging.impl |
Class | public class DefaultMessageRouter |
Inheritance | DefaultMessageRouter Object |
Implements | MessageRouter, InitializingService |
Method | Defined 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 | ||
observeCommand(command:ObservableCommand, typeCache:MessageReceiverCache, triggerCache:MessageReceiverCache):void
Processes the observers registered for the specified command and its current status. | DefaultMessageRouter |
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
|