Package | org.spicefactory.parsley.core.messaging |
Interface | public interface MessageRouter |
Implementors | DefaultMessageRouter |
Method | Defined By | ||
---|---|---|---|
Dispatches the specified message, processing all interceptors, handlers and bindings that have
registered for that message type. | MessageRouter | ||
observeCommand(command:ObservableCommand, typeCache:MessageReceiverCache, triggerCache:MessageReceiverCache):void
Processes the observers registered for the specified command and its current status. | MessageRouter |
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
|