| Package | org.spicefactory.parsley.dsl.messaging.impl |
| Class | public class DefaultMessageHandlerBuilder |
| Inheritance | DefaultMessageHandlerBuilder Object |
| Implements | MessageHandlerBuilder, ObjectDefinitionBuilderPart |
| Method | Defined By | ||
|---|---|---|---|
apply(target:ObjectDefinition):void
Applies this builder part to the final definition
| DefaultMessageHandlerBuilder | ||
[static]
Creates a new builder for a command. | DefaultMessageHandlerBuilder | ||
[static]
Creates a new builder for a message handler. | DefaultMessageHandlerBuilder | ||
messageProperties(value:Array):MessageHandlerBuilder
Sets the optional list of names of properties of the message that should be used as method parameters
instead passing the message itself as a parameter. | DefaultMessageHandlerBuilder | ||
order(value:int):MessageHandlerBuilder
Sets the execution order for this handler. | DefaultMessageHandlerBuilder | ||
scope(name:String):MessageHandlerBuilder
Sets the name of the scope this handler should be applied to. | DefaultMessageHandlerBuilder | ||
selector(value:*):MessageHandlerBuilder
Sets an optional selector value to be used in addition to selecting messages by type. | DefaultMessageHandlerBuilder | ||
type(value:Class):MessageHandlerBuilder
Sets the type of the messages the handler wants to handle. | DefaultMessageHandlerBuilder | ||
| 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
|
| forCommand | () | method |
public static function forCommand(target:Method, config:Configuration):DefaultMessageHandlerBuilderCreates a new builder for a command.
Parameters
target:Method — the target method to invoke
| |
config:Configuration — the configuration for the associated registry
|
DefaultMessageHandlerBuilder — a new builder for a command
|
| forMessageHandler | () | method |
public static function forMessageHandler(target:Method, config:Configuration):DefaultMessageHandlerBuilderCreates a new builder for a message handler.
Parameters
target:Method — the target method to invoke
| |
config:Configuration — the configuration for the associated registry
|
DefaultMessageHandlerBuilder — a new builder for a message handler
|
| messageProperties | () | method |
public function messageProperties(value:Array):MessageHandlerBuilderSets the optional list of names of properties of the message that should be used as method parameters instead passing the message itself as a parameter.
Parameters
value:Array — list of names of properties of the message that should be used as method parameters
|
MessageHandlerBuilder — this builder for method chaining
|
| order | () | method |
public function order(value:int):MessageHandlerBuilder
Sets the execution order for this handler. Will be processed in ascending order.
The default is int.MAX_VALUE.
Parameters
value:int — the execution order for this handler
|
MessageHandlerBuilder — this builder instance for method chaining
|
| scope | () | method |
public function scope(name:String):MessageHandlerBuilderSets the name of the scope this handler should be applied to.
Parameters
name:String — the name of the scope this handler should be applied to
|
MessageHandlerBuilder — this builder instance for method chaining
|
| selector | () | method |
public function selector(value:*):MessageHandlerBuilderSets 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
|
MessageHandlerBuilder — this builder instance for method chaining
|
| type | () | method |
public function type(value:Class):MessageHandlerBuilderSets the type of the messages the handler wants to handle.
Parameters
value:Class — the type of the messages the handler wants to handle
|
MessageHandlerBuilder — this builder instance for method chaining
|