Packageorg.spicefactory.parsley.dsl.messaging.impl
Classpublic class DefaultMessageErrorBuilder
InheritanceDefaultMessageErrorBuilder Inheritance Object
Implements MessageErrorBuilder, ObjectDefinitionBuilderPart

Default implementation for the MessageErrorBuilder interface.



Public Methods
 MethodDefined By
  
Creates a new instance.
DefaultMessageErrorBuilder
  
apply(target:ObjectDefinition):void
Applies this builder part to the final definition
DefaultMessageErrorBuilder
  
Sets the type of the error that this handler is interested in.
DefaultMessageErrorBuilder
  
Sets the execution order for this error handler.
DefaultMessageErrorBuilder
  
Sets the name of the scope this error handler should be applied to.
DefaultMessageErrorBuilder
  
Sets an optional selector value to be used in addition to selecting messages by type.
DefaultMessageErrorBuilder
  
Sets the type of the messages the error handler wants to handle.
DefaultMessageErrorBuilder
Constructor Detail
DefaultMessageErrorBuilder()Constructor
public function DefaultMessageErrorBuilder(method:Method, info:MessageReceiverInfo)

Creates a new instance.

Parameters
method:Method — the target method that handles the error
 
info:MessageReceiverInfo — the configuration for the binding
Method Detail
apply()method
public function apply(target:ObjectDefinition):void

Applies 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):MessageErrorBuilder

Sets 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

Returns
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

Returns
MessageErrorBuilder — this builder instance for method chaining
scope()method 
public function scope(name:String):MessageErrorBuilder

Sets 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

Returns
MessageErrorBuilder — this builder instance for method chaining
selector()method 
public function selector(value:*):MessageErrorBuilder

Sets 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

Returns
MessageErrorBuilder — this builder instance for method chaining
type()method 
public function type(value:Class):MessageErrorBuilder

Sets 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

Returns
MessageErrorBuilder — this builder instance for method chaining