Packageorg.spicefactory.parsley.core.messaging.impl
Classpublic class DefaultMessageReceiverRegistry
InheritanceDefaultMessageReceiverRegistry Inheritance Object
Implements MessageReceiverRegistry

Default implementation of the MessageReceiverRegistry interface.



Public Methods
 MethodDefined By
  
Creates a new instance.
DefaultMessageReceiverRegistry
  
Adds an observer for a matching command execution to this registry.
DefaultMessageReceiverRegistry
  
Adds an error handler to this registry.
DefaultMessageReceiverRegistry
  
Adds a regular target (like a MessageHandler or MessageBinding) to this registry.
DefaultMessageReceiverRegistry
  
Returns the selection of receivers that match the specified message type.
DefaultMessageReceiverRegistry
  
Removes an observer for a matching command execution from this registry.
DefaultMessageReceiverRegistry
  
Removes an error handler from this registry.
DefaultMessageReceiverRegistry
  
Removes a regular target (like a MessageHandler or MessageBinding) from this registry.
DefaultMessageReceiverRegistry
Constructor Detail
DefaultMessageReceiverRegistry()Constructor
public function DefaultMessageReceiverRegistry(domainManager:GlobalDomainManager)

Creates a new instance.

Parameters
domainManager:GlobalDomainManager — the manager that keeps track of all ApplicationDomains currently used by one or more Contexts
Method Detail
addCommandObserver()method
public function addCommandObserver(observer:CommandObserver):void

Adds an observer for a matching command execution to this registry.

Parameters

observer:CommandObserver — the observer to add to this registry

addErrorHandler()method 
public function addErrorHandler(errorHandler:MessageErrorHandler):void

Adds an error handler to this registry.

Parameters

errorHandler:MessageErrorHandler — the error handler to add to this registry

addTarget()method 
public function addTarget(target:MessageTarget):void

Adds a regular target (like a MessageHandler or MessageBinding) to this registry.

Parameters

target:MessageTarget — the target to add to this registry

getSelectionCache()method 
public function getSelectionCache(messageType:ClassInfo):DefaultMessageReceiverCache

Returns the selection of receivers that match the specified message type.

Parameters

messageType:ClassInfo — the message type to match against

Returns
DefaultMessageReceiverCache — the selection of receivers that match the specified message type
removeCommandObserver()method 
public function removeCommandObserver(observer:CommandObserver):void

Removes an observer for a matching command execution from this registry.

Parameters

observer:CommandObserver — the observer to remove from this registry

removeErrorHandler()method 
public function removeErrorHandler(errorHandler:MessageErrorHandler):void

Removes an error handler from this registry.

Parameters

errorHandler:MessageErrorHandler — the error handler to remove from this registry

removeTarget()method 
public function removeTarget(target:MessageTarget):void

Removes a regular target (like a MessageHandler or MessageBinding) from this registry.

Parameters

target:MessageTarget — the target to remove from this registry