Packageorg.spicefactory.parsley.dsl.messaging.impl
Classpublic class DefaultMessageBindingBuilder
InheritanceDefaultMessageBindingBuilder Inheritance Object
Implements MessageBindingBuilder, ObjectDefinitionBuilderPart

Default implementation for the MessageBindingBuilder interface.



Public Methods
 MethodDefined By
  
Creates a new instance.
DefaultMessageBindingBuilder
  
apply(target:ObjectDefinition):void
Applies this builder part to the final definition
DefaultMessageBindingBuilder
  
Sets the name of the property of the message type whose value should be bound to the target property.
DefaultMessageBindingBuilder
  
Sets the execution order for this binding.
DefaultMessageBindingBuilder
  
Sets the name of the scope this binding should be applied to.
DefaultMessageBindingBuilder
  
Sets an optional selector value to be used in addition to selecting messages by type.
DefaultMessageBindingBuilder
  
Sets the type of the messages the binding wants to handle.
DefaultMessageBindingBuilder
Constructor Detail
DefaultMessageBindingBuilder()Constructor
public function DefaultMessageBindingBuilder(property:Property, info:MessageReceiverInfo)

Creates a new instance.

Parameters
property:Property — the property to apply the binding to
 
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

messageProperty()method 
public function messageProperty(value:String):MessageBindingBuilder

Sets the name of the property of the message type whose value should be bound to the target property.

Parameters

value:String — the name of the property of the message type whose value should be bound to the target property

Returns
MessageBindingBuilder — this builder instance for method chaining
order()method 
public function order(value:int):MessageBindingBuilder

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

Parameters

value:int — the execution order for this binding

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

Sets the name of the scope this binding should be applied to.

Parameters

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

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

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

Sets the type of the messages the binding wants to handle.

Parameters

value:Class — the type of the messages the binding wants to handle

Returns
MessageBindingBuilder — this builder instance for method chaining