Packageorg.spicefactory.parsley.core.messaging
Interfacepublic interface MessageReceiverRegistry
Implementors DefaultMessageReceiverRegistry

Registry for receivers of messages dispatched through a MessageRouter.

There are three types of receivers: First the regular targets like MessageHandlers and MessageBindings, second interceptors which have some additional power and may cancel or suspend the processing of a message and finally error handlers which are only invoked in case a regular target or an interceptor threw an error.



Public Methods
 MethodDefined By
  
Adds an observer for a matching command execution to this registry.
MessageReceiverRegistry
  
Adds an error handler to this registry.
MessageReceiverRegistry
  
Adds a regular target (like a MessageHandler or MessageBinding) to this registry.
MessageReceiverRegistry
  
Removes an observer for a matching command execution from this registry.
MessageReceiverRegistry
  
Removes an error handler from this registry.
MessageReceiverRegistry
  
Removes a regular target (like a MessageHandler or MessageBinding) from this registry.
MessageReceiverRegistry
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(handler:MessageErrorHandler):void

Adds an error handler to this registry.

Parameters

handler: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

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(handler:MessageErrorHandler):void

Removes an error handler from this registry.

Parameters

handler: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