| Package | org.spicefactory.parsley.dsl.messaging.impl |
| Class | public class DefaultMessageErrorBuilder |
| Inheritance | DefaultMessageErrorBuilder Object |
| Implements | MessageErrorBuilder, ObjectDefinitionBuilderPart |
| Method | Defined By | ||
|---|---|---|---|
Creates a new instance. | DefaultMessageErrorBuilder | ||
apply(target:ObjectDefinition):void
Applies this builder part to the final definition
| DefaultMessageErrorBuilder | ||
errorType(type:Class):MessageErrorBuilder
Sets the type of the error that this handler is interested in. | DefaultMessageErrorBuilder | ||
order(value:int):MessageErrorBuilder
Sets the execution order for this error handler. | DefaultMessageErrorBuilder | ||
scope(name:String):MessageErrorBuilder
Sets the name of the scope this error handler should be applied to. | DefaultMessageErrorBuilder | ||
selector(value:*):MessageErrorBuilder
Sets an optional selector value to be used in addition to selecting messages by type. | DefaultMessageErrorBuilder | ||
type(value:Class):MessageErrorBuilder
Sets the type of the messages the error handler wants to handle. | DefaultMessageErrorBuilder | ||
| DefaultMessageErrorBuilder | () | Constructor |
public function DefaultMessageErrorBuilder(method:Method, info:MessageReceiverInfo)Creates a new instance.
Parametersmethod:Method — the target method that handles the error
| |
info:MessageReceiverInfo — the configuration for the binding
|
| apply | () | method |
public function apply(target:ObjectDefinition):voidApplies this builder part to the final definition
Parameters
target:ObjectDefinition — the final definition to apply this part to
|
| errorType | () | method |
public function errorType(type:Class):MessageErrorBuilderSets the type of the error that this handler is interested in. The default is the top level Error class.
Parameters
type:Class — the type of the error that this handler is interested in
|
MessageErrorBuilder — this builder instance for method chaining
|
| order | () | method |
public function order(value:int):MessageErrorBuilder
Sets the execution order for this error handler. Will be processed in ascending order.
The default is int.MAX_VALUE.
Parameters
value:int — the execution order for this error handler
|
MessageErrorBuilder — this builder instance for method chaining
|
| scope | () | method |
public function scope(name:String):MessageErrorBuilderSets the name of the scope this error handler should be applied to.
Parameters
name:String — the name of the scope this error handler should be applied to
|
MessageErrorBuilder — this builder instance for method chaining
|
| selector | () | method |
public function selector(value:*):MessageErrorBuilderSets an optional selector value to be used in addition to selecting messages by type.
Parameters
value:* — an optional selector value to be used in addition to selecting messages by type
|
MessageErrorBuilder — this builder instance for method chaining
|
| type | () | method |
public function type(value:Class):MessageErrorBuilderSets the type of the messages the error handler wants to handle.
Parameters
value:Class — the type of the messages the error handler wants to handle
|
MessageErrorBuilder — this builder instance for method chaining
|