| Package | org.spicefactory.parsley.dsl.messaging.impl |
| Class | public class DefaultMessageReceiverBuilder |
| Inheritance | DefaultMessageReceiverBuilder Object |
| Implements | MessageReceiverBuilder, ObjectDefinitionBuilderPart |
| Method | Defined 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 | ||
order(value:int):MessageReceiverBuilder
Sets the execution order for this message receiver. | DefaultMessageReceiverBuilder | ||
scope(name:String):MessageReceiverBuilder
Sets the name of the scope this message receiver should be applied to. | DefaultMessageReceiverBuilder | ||
selector(value:*):MessageReceiverBuilder
Sets an optional selector value to be used in addition to selecting messages by type. | DefaultMessageReceiverBuilder | ||
type(value:Class):MessageReceiverBuilder
Sets the type of the messages the message receiver wants to handle. | DefaultMessageReceiverBuilder | ||
| 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
|
| forCommandComplete | () | method |
public static function forCommandComplete(target:Method, config:Configuration):DefaultMessageReceiverBuilderCreates 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
|
DefaultMessageReceiverBuilder — a new builder for a command error handler
|
| forCommandError | () | method |
public static function forCommandError(target:Method, config:Configuration):DefaultMessageReceiverBuilderCreates 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
|
DefaultMessageReceiverBuilder — a new builder for a command error handler
|
| forCommandResult | () | method |
public static function forCommandResult(target:Method, config:Configuration):DefaultMessageReceiverBuilderCreates 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
|
DefaultMessageReceiverBuilder — a new builder for a command result handler
|
| forCommandStatus | () | method |
public static function forCommandStatus(target:Property, config:Configuration):DefaultMessageReceiverBuilderCreates 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
|
DefaultMessageReceiverBuilder — a new builder for a command status
|
| forMessageInterceptor | () | method |
public static function forMessageInterceptor(target:Method, config:Configuration):DefaultMessageReceiverBuilderCreates a new builder for an interceptor.
Parameters
target:Method — the intercepting method
| |
config:Configuration — the configuration for the associated registry
|
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
|
MessageReceiverBuilder — this builder instance for method chaining
|
| scope | () | method |
public function scope(name:String):MessageReceiverBuilderSets 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
|
MessageReceiverBuilder — this builder instance for method chaining
|
| selector | () | method |
public function selector(value:*):MessageReceiverBuilderSets 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
|
MessageReceiverBuilder — this builder instance for method chaining
|
| type | () | method |
public function type(value:Class):MessageReceiverBuilderSets 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
|
MessageReceiverBuilder — this builder instance for method chaining
|