| Package | org.spicefactory.parsley.core.messaging.impl |
| Class | public class DefaultMessageSettings |
| Inheritance | DefaultMessageSettings Object |
| Implements | MessageSettings |
| Property | Defined By | ||
|---|---|---|---|
| defaultReceiverScope : String
The default scope to use for message receivers and observers. | DefaultMessageSettings | ||
| unhandledError : ErrorPolicy
The policy to apply for unhandled errors. | DefaultMessageSettings | ||
| Method | Defined By | ||
|---|---|---|---|
addErrorHandler(target:MessageErrorHandler):void
Adds an error handler that will be applied to all routers created with these settings. | DefaultMessageSettings | ||
addParent(parent:MessageSettings):void
Adds a parent for looking up values not set in this instance. | DefaultMessageSettings | ||
getErrorHandlers(status:LookupStatus = null):Array
Returns all error handlers that were registered for these settings. | DefaultMessageSettings | ||
| defaultReceiverScope | property |
defaultReceiverScope:StringThe 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:ErrorPolicyThe 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(target:MessageErrorHandler):voidAdds an error handler that will be applied to all routers created with these settings.
Parameters
target:MessageErrorHandler — the error handler to add
|
| addParent | () | method |
public function addParent(parent:MessageSettings):voidAdds a parent for looking up values not set in this instance.
Parameters
parent:MessageSettings — parent settings instance
|
| 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
|