| Package | org.spicefactory.parsley.command | 
| Class | public class MappedCommands | 
| Inheritance | MappedCommands    Object | 
| Method | Defined By | ||
|---|---|---|---|
create(type:Class):MappedCommandBuilder [static] 
	 Creates a new mapping builder for the specified command type.  | MappedCommands | ||
factoryFunction(factory:Function, type:Class):MappedCommandBuilder [static] 
	 Creates a new mapping builder for the specified factory function.  | MappedCommands | ||
| create | () | method | 
 public static function create(type:Class):MappedCommandBuilderCreates a new mapping builder for the specified command type.
Parameters
type:Class | 
MappedCommandBuilder — a new mapping builder for the specified command type
	  | 
| factoryFunction | () | method | 
 public static function factoryFunction(factory:Function, type:Class):MappedCommandBuilderCreates a new mapping builder for the specified factory function. The factory function should not expect any arguments and create a new command instance on each invocation. It will get invoked for each matching message that triggers a command execution.
Parameters
factory:Function — the factory function for creating new command instances
	  | |
type:Class — the type of command the factory creates
	  | 
MappedCommandBuilder |