| Package | org.spicefactory.parsley.dsl.messaging.impl |
| Class | public class DefaultMessageBindingBuilder |
| Inheritance | DefaultMessageBindingBuilder Object |
| Implements | MessageBindingBuilder, ObjectDefinitionBuilderPart |
| Method | Defined By | ||
|---|---|---|---|
Creates a new instance. | DefaultMessageBindingBuilder | ||
apply(target:ObjectDefinition):void
Applies this builder part to the final definition
| DefaultMessageBindingBuilder | ||
messageProperty(value:String):MessageBindingBuilder
Sets the name of the property of the message type whose value should be bound to the target property. | DefaultMessageBindingBuilder | ||
order(value:int):MessageBindingBuilder
Sets the execution order for this binding. | DefaultMessageBindingBuilder | ||
scope(name:String):MessageBindingBuilder
Sets the name of the scope this binding should be applied to. | DefaultMessageBindingBuilder | ||
selector(value:*):MessageBindingBuilder
Sets an optional selector value to be used in addition to selecting messages by type. | DefaultMessageBindingBuilder | ||
type(value:Class):MessageBindingBuilder
Sets the type of the messages the binding wants to handle. | DefaultMessageBindingBuilder | ||
| DefaultMessageBindingBuilder | () | Constructor |
public function DefaultMessageBindingBuilder(property:Property, info:MessageReceiverInfo)Creates a new instance.
Parametersproperty:Property — the property to apply the binding to
| |
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
|
| messageProperty | () | method |
public function messageProperty(value:String):MessageBindingBuilderSets 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
|
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
|
MessageBindingBuilder — this builder instance for method chaining
|
| scope | () | method |
public function scope(name:String):MessageBindingBuilderSets 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
|
MessageBindingBuilder — this builder instance for method chaining
|
| selector | () | method |
public function selector(value:*):MessageBindingBuilderSets 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
|
MessageBindingBuilder — this builder instance for method chaining
|
| type | () | method |
public function type(value:Class):MessageBindingBuilderSets the type of the messages the binding wants to handle.
Parameters
value:Class — the type of the messages the binding wants to handle
|
MessageBindingBuilder — this builder instance for method chaining
|