Packageorg.spicefactory.parsley.core.messaging
Interfacepublic interface MessageSettings
Implementors DefaultMessageSettings

Factory responsible for creating MessageRouter instances.



Public Properties
 PropertyDefined By
  defaultReceiverScope : String
The default scope to use for message receivers and observers.
MessageSettings
  unhandledError : ErrorPolicy
The policy to apply for unhandled errors.
MessageSettings
Public Methods
 MethodDefined By
  
Adds an error handler that will be applied to all routers created with these settings.
MessageSettings
  
getErrorHandlers(status:LookupStatus = null):Array
Returns all error handlers that were registered for these settings.
MessageSettings
Property Detail
defaultReceiverScopeproperty
defaultReceiverScope:String

The default scope to use for message receivers and observers. If not specified the global scope will be used. In a modular application it is not uncommon that most message receivers are only interested in local messages. Switching the default allows to avoid specifying the local scope explicitly on all metadata tags.


Implementation
    public function get defaultReceiverScope():String
    public function set defaultReceiverScope(value:String):void
unhandledErrorproperty 
unhandledError:ErrorPolicy

The policy to apply for unhandled errors. An unhandled error is an error thrown by a message handler where no matching error handler was registered for.


Implementation
    public function get unhandledError():ErrorPolicy
    public function set unhandledError(value:ErrorPolicy):void
Method Detail
addErrorHandler()method
public function addErrorHandler(handler:MessageErrorHandler):void

Adds an error handler that will be applied to all routers created with these settings.

Parameters

handler:MessageErrorHandler — the error handler to add

getErrorHandlers()method 
public function getErrorHandlers(status:LookupStatus = null):Array

Returns all error handlers that were registered for these settings. This Array is read-only, modifications do not have any effect on the registered error handlers. Use addErrorHandler to register a new handler.

Parameters

status:LookupStatus (default = null) — optional paramater to avoid duplicate lookups, for internal use only

Returns
Array — all view error handlers added to these settings