Packageorg.spicefactory.parsley.dsl.messaging
Interfacepublic interface MessageReceiverBuilder
Implementors DefaultMessageReceiverBuilder

Builder for all message receiver types that only offer the standard set of attributes supported by all receivers.



Public Methods
 MethodDefined By
  
Sets the execution order for this message receiver.
MessageReceiverBuilder
  
Sets the name of the scope this message receiver should be applied to.
MessageReceiverBuilder
  
Sets an optional selector value to be used in addition to selecting messages by type.
MessageReceiverBuilder
  
Sets the type of the messages the message receiver wants to handle.
MessageReceiverBuilder
Method Detail
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