| Package | org.springextensions.actionscript.cairngorm.commands |
| SVN browsing | CommandFactory.as |
| Fisheye | CommandFactory.as |
| Class | public class CommandFactory |
| Implements | ICommandFactory |
| Subclasses | ResponderCommandFactory |
ICommandFactory implementation that is capable of creating commands that implements the ICommand interface.
Documentation reference: the command factory
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new
CommandFactory instance. | CommandFactory | ||
|
canCreate(clazz:Class):Boolean
Returns true if the specified
Class implements the ICommand interface
| CommandFactory | ||
|
createCommand(clazz:Class):ICommand
Creates a command for the passed command type
| CommandFactory | ||
| CommandFactory | () | constructor |
public function CommandFactory()
Creates a new CommandFactory instance.
| canCreate | () | method |
public function canCreate(clazz:Class):Boolean
Returns true if the specified Class implements the ICommand interface
clazz:Class |
Boolean |
| createCommand | () | method |
public function createCommand(clazz:Class):ICommandCreates a command for the passed command type
Parametersclazz:Class — The Command Type
|
ICommand — The new ICommand instance
|