Packageorg.spicefactory.parsley.dsl.messaging.impl
Classpublic class DefaultMessageReceiverBuilder
InheritanceDefaultMessageReceiverBuilder Inheritance Object
Implements MessageReceiverBuilder, ObjectDefinitionBuilderPart

Default implementation for the MessageReceiverBuilder interface.



Public Methods
 MethodDefined By
  
apply(target:ObjectDefinition):void
Applies this builder part to the final definition
DefaultMessageReceiverBuilder
  
[static] Creates a new builder for a command complete handler.
DefaultMessageReceiverBuilder
  
[static] Creates a new builder for a command error handler.
DefaultMessageReceiverBuilder
  
[static] Creates a new builder for a command result handler.
DefaultMessageReceiverBuilder
  
[static] Creates a new builder for a command status.
DefaultMessageReceiverBuilder
  
[static] Creates a new builder for an interceptor.
DefaultMessageReceiverBuilder
  
Sets the execution order for this message receiver.
DefaultMessageReceiverBuilder
  
Sets the name of the scope this message receiver should be applied to.
DefaultMessageReceiverBuilder
  
Sets an optional selector value to be used in addition to selecting messages by type.
DefaultMessageReceiverBuilder
  
Sets the type of the messages the message receiver wants to handle.
DefaultMessageReceiverBuilder
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

forCommandComplete()method 
public static function forCommandComplete(target:Method, config:Configuration):DefaultMessageReceiverBuilder

Creates a new builder for a command complete handler.

Parameters

target:Method — the method that handles the error
 
config:Configuration — the configuration for the associated registry

Returns
DefaultMessageReceiverBuilder — a new builder for a command error handler
forCommandError()method 
public static function forCommandError(target:Method, config:Configuration):DefaultMessageReceiverBuilder

Creates a new builder for a command error handler.

Parameters

target:Method — the method that handles the error
 
config:Configuration — the configuration for the associated registry

Returns
DefaultMessageReceiverBuilder — a new builder for a command error handler
forCommandResult()method 
public static function forCommandResult(target:Method, config:Configuration):DefaultMessageReceiverBuilder

Creates a new builder for a command result handler.

Parameters

target:Method — the method that handles the result
 
config:Configuration — the configuration for the associated registry

Returns
DefaultMessageReceiverBuilder — a new builder for a command result handler
forCommandStatus()method 
public static function forCommandStatus(target:Property, config:Configuration):DefaultMessageReceiverBuilder

Creates a new builder for a command status.

Parameters

target:Property — the property to bind the status to
 
config:Configuration — the configuration for the associated registry

Returns
DefaultMessageReceiverBuilder — a new builder for a command status
forMessageInterceptor()method 
public static function forMessageInterceptor(target:Method, config:Configuration):DefaultMessageReceiverBuilder

Creates a new builder for an interceptor.

Parameters

target:Method — the intercepting method
 
config:Configuration — the configuration for the associated registry

Returns
DefaultMessageReceiverBuilder — a new builder for an interceptor
order()method 
public function order(value:int):MessageReceiverBuilder

Sets the execution order for this message receiver. Will be processed in ascending order. The default is int.MAX_VALUE.

Parameters

value:int — the execution order for this message receiver

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

Sets the name of the scope this message receiver should be applied to.

Parameters

name:String — the name of the scope this message receiver should be applied to

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

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
MessageReceiverBuilder — this builder instance for method chaining
type()method 
public function type(value:Class):MessageReceiverBuilder

Sets the type of the messages the message receiver wants to handle.

Parameters

value:Class — the type of the messages the message receiver wants to handle

Returns
MessageReceiverBuilder — this builder instance for method chaining