Packageorg.spicefactory.parsley.comobserver
Classpublic class CommandComplete
InheritanceCommandComplete Inheritance Object

API for configuring methods which should be invoked when a matching asynchronous command execution has been completed.



Public Methods
 MethodDefined By
  
Applies this configuration to the specified definition builder.
CommandComplete
  
forMethod(method:String):CommandComplete
[static] Creates a new builder for a command result handler.
CommandComplete
  
Sets the execution order for this message receiver.
CommandComplete
  
scope(name:String):CommandComplete
Sets the name of the scope this message receiver should be applied to.
CommandComplete
  
Sets an optional selector value to be used in addition to selecting messages by type.
CommandComplete
  
type(value:Class):CommandComplete
Sets the type of the messages the message receiver wants to handle.
CommandComplete
Method Detail
apply()method
public function apply(builder:ObjectDefinitionBuilder):void

Applies this configuration to the specified definition builder.

Parameters

builder:ObjectDefinitionBuilder — the builder to apply this configuration to

forMethod()method 
public static function forMethod(method:String):CommandComplete

Creates a new builder for a command result handler.

Parameters

method:String — the method that handles the result

Returns
CommandComplete — a new builder for a command result handler
order()method 
public function order(value:int):CommandComplete

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
CommandComplete — this builder instance for method chaining
scope()method 
public function scope(name:String):CommandComplete

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
CommandComplete — this builder instance for method chaining
selector()method 
public function selector(value:*):CommandComplete

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

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
CommandComplete — this builder instance for method chaining