| Package | org.spicefactory.lib.command.builder | 
| Class | public class CommandProxyBuilder | 
| Inheritance | CommandProxyBuilder    AbstractCommandBuilder   Object | 
| Method | Defined By | ||
|---|---|---|---|
[override] 
	 
	 
	 Builds the target command, applying all configurations specified
	 through this builder instance.  | CommandProxyBuilder | ||
cancel(callback:Function):CommandProxyBuilder 
	 Adds a callback to invoke when the command gets cancelled.  | CommandProxyBuilder | ||
data(value:Object):CommandProxyBuilder 
	 Adds a value that can get passed to the command
	 executed by the proxy this builder creates.  | CommandProxyBuilder | ||
description(description:String, ... params):CommandProxyBuilder 
	 A description of the command proxy produced by this builder.  | CommandProxyBuilder | ||
domain(domain:ApplicationDomain):CommandProxyBuilder 
	 The domain to use for reflecting on command classes.  | CommandProxyBuilder | ||
error(callback:Function):CommandProxyBuilder 
	 Adds a callback to invoke when the command produced an error.  | CommandProxyBuilder | ||
![]()  | 
	 
	 Builds and executes the target command.  | AbstractCommandBuilder | |
result(callback:Function):CommandProxyBuilder 
	 Adds a callback to invoke when the command completes successfully.  | CommandProxyBuilder | ||
timeout(milliseconds:uint):CommandProxyBuilder 
	 Sets the timeout for the command execution.  | CommandProxyBuilder | ||
| build | () | method | 
override public function build():CommandProxyBuilds the target command, applying all configurations specified through this builder instance.
ReturnsCommandProxy — the command proxy will all configuration of this builder applied
	  | 
| cancel | () | method | 
 public function cancel(callback:Function):CommandProxyBuilderAdds a callback to invoke when the command gets cancelled. The callback should not expect any parameters.
Parameters
callback:Function — the callback to invoke when the command gets cancelled
	  | 
CommandProxyBuilder — this builder instance for method chaining
	  | 
| data | () | method | 
 public function data(value:Object):CommandProxyBuilderAdds a value that can get passed to the command executed by the proxy this builder creates.
Parameters
value:Object — the value to pass to the command
	  | 
CommandProxyBuilder — this builder instance for method chaining
	  | 
| description | () | method | 
 public function description(description:String, ... params):CommandProxyBuilderA description of the command proxy produced by this builder.
Parameters
description:String — a description of the command proxy produced by this builder
	  | |
... params — parameters to insert into the description in case in contains placeholders (like {0})
	  | 
CommandProxyBuilder — this builder instance for method chaining
	  | 
| domain | () | method | 
 public function domain(domain:ApplicationDomain):CommandProxyBuilderThe domain to use for reflecting on command classes.
Parameters
domain:ApplicationDomain — the domain to use for reflecting on command classes
	  | 
CommandProxyBuilder — this builder instance for method chaining
	  | 
| error | () | method | 
 public function error(callback:Function):CommandProxyBuilderAdds a callback to invoke when the command produced an error. The cause of the error will get passed to the callback.
Parameters
callback:Function — the callback to invoke when the command produced an error
	  | 
CommandProxyBuilder — this builder instance for method chaining
	  | 
| result | () | method | 
 public function result(callback:Function):CommandProxyBuilderAdds a callback to invoke when the command completes successfully. The result produced by the command will get passed to the callback.
Parameters
callback:Function — the callback to invoke when the command completes successfully
	  | 
CommandProxyBuilder — this builder instance for method chaining
	  | 
| timeout | () | method | 
 public function timeout(milliseconds:uint):CommandProxyBuilderSets the timeout for the command execution. When the specified amount of time is elapsed the proxy will abort with an error.
Parameters
milliseconds:uint — the timeout for the command execution in milliseconds
	  | 
CommandProxyBuilder — this builder instance for method chaining
	  |