| Package | org.springextensions.actionscript.cairngorm.commands |
| SVN browsing | ICommandFactory.as |
| Fisheye | ICommandFactory.as |
| Interface | public interface ICommandFactory |
| Subinterfaces | IResponderCommandFactory |
| Implementors | CairngormFrontController, CommandFactory, DefaultCommandFactoryRegistry |
ICommand instances.
Documentation reference: the command factory
| Method | Defined by | ||
|---|---|---|---|
|
canCreate(clazz:Class):Boolean
Returns true if the current
ICommandFactory is able to create the specified Class
| ICommandFactory | ||
|
createCommand(clazz:Class):ICommand
Creates a command for the passed command type
| ICommandFactory | ||
| canCreate | () | method |
public function canCreate(clazz:Class):Boolean
Returns true if the current ICommandFactory is able to create the specified Class
clazz:Class — The specified Class instance.
|
Boolean — True if the factory is able to create the specified Class instance.
|
| 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
|