Package | org.spicefactory.parsley.core.messaging |
Interface | public interface MessageSettings |
Implementors | DefaultMessageSettings |
Property | Defined By | ||
---|---|---|---|
defaultReceiverScope : String
The default scope to use for message receivers and observers. | MessageSettings | ||
unhandledError : ErrorPolicy
The policy to apply for unhandled errors. | MessageSettings |
Method | Defined By | ||
---|---|---|---|
addErrorHandler(handler:MessageErrorHandler):void
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 |
defaultReceiverScope | property |
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.
public function get defaultReceiverScope():String
public function set defaultReceiverScope(value:String):void
unhandledError | property |
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.
public function get unhandledError():ErrorPolicy
public function set unhandledError(value:ErrorPolicy):void
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
|
Array — all view error handlers added to these settings
|