| Package | org.spicefactory.lib.command.builder |
| Class | public class Commands |
| Inheritance | Commands Object |
| Method | Defined By | ||
|---|---|---|---|
[static]
Creates a new builder for commands to be executed as a flow with
decision points between individual commands. | Commands | ||
[static]
Creates a new builder for commands to be executed as a sequence. | Commands | ||
create(commandType:Class):CommandProxyBuilder [static]
Creates a builder for the specified command type. | Commands | ||
delay(milliseconds:uint):CommandProxyBuilder [static]
Creates a builder that creates a command that simply waits the specified
amount of time before completing. | Commands | ||
delegate(commandFunction:Function, ... params):CommandProxyBuilder [static]
Creates a builder for simple delegate that invokes the specified function
when the command gets executed. | Commands | ||
[static]
Creates a new builder for commands to be executed in parallel. | Commands | ||
useDomain(domain:ApplicationDomain):void [static]
Specifies a domain to use for reflecting on command classes. | Commands | ||
wrap(command:Object):CommandProxyBuilder [static]
Creates a builder for the specified command instance. | Commands | ||
| asFlow | () | method |
public static function asFlow():CommandFlowBuilderCreates a new builder for commands to be executed as a flow with decision points between individual commands.
ReturnsCommandFlowBuilder — a new builder for commands to be executed as a flow
|
| asSequence | () | method |
public static function asSequence():CommandGroupBuilderCreates a new builder for commands to be executed as a sequence.
ReturnsCommandGroupBuilder — a new builder for commands to be executed as a sequence
|
| create | () | method |
public static function create(commandType:Class):CommandProxyBuilder
Creates a builder for the specified command type.
The target type may either be a class that implements the Command
interface itself or a type an adapter is registered for that knows how to turn
the type into a command.
Parameters
commandType:Class |
CommandProxyBuilder — a new builder for the specified command type
|
| delay | () | method |
public static function delay(milliseconds:uint):CommandProxyBuilderCreates a builder that creates a command that simply waits the specified amount of time before completing.
Parameters
milliseconds:uint — the time to wait in milliseconds before the command completion
|
CommandProxyBuilder — a new builder for a command that waits the specified
amount of time before completing
|
| delegate | () | method |
public static function delegate(commandFunction:Function, ... params):CommandProxyBuilderCreates a builder for simple delegate that invokes the specified function when the command gets executed.
Parameters
commandFunction:Function — the function to invoke when the command gets executed
| |
... params — parameters to pass to the function
|
CommandProxyBuilder — a new builder for the specified command function
|
| inParallel | () | method |
public static function inParallel():CommandGroupBuilderCreates a new builder for commands to be executed in parallel.
ReturnsCommandGroupBuilder — a new builder for commands to be executed in parallel
|
| useDomain | () | method |
public static function useDomain(domain:ApplicationDomain):voidSpecifies a domain to use for reflecting on command classes. This is a global default that will affect all subsequent commands built by this DSL.
Parameters
domain:ApplicationDomain — the domain to use for reflecting on command classes
|
| wrap | () | method |
public static function wrap(command:Object):CommandProxyBuilderCreates a builder for the specified command instance.
Legal parameters are any instances that implement either
Command or CommandBuilder, or any other type in case
an adapter is registered that knows how to turn the type into a command.
Parameters
command:Object |
CommandProxyBuilder — a new builder for the specified command instance
|