| Package | org.springextensions.actionscript.cairngorm.commands |
| SVN browsing | DefaultCommandFactoryRegistry.as |
| Fisheye | DefaultCommandFactoryRegistry.as |
| Class | public class DefaultCommandFactoryRegistry |
| Implements | ICommandFactoryRegistry |
Default implementation of the ICommandFactoryRegistry interface.
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new
DefaultCommandFactoryRegistry instance. | DefaultCommandFactoryRegistry | ||
|
addCommandFactory(factory:ICommandFactory):void
Adds a new The | DefaultCommandFactoryRegistry | ||
|
createCommand(commandClass:Class):ICommand
Looks up the appropriate
ICommandFactory instance to create the specified Class. | DefaultCommandFactoryRegistry | ||
| DefaultCommandFactoryRegistry | () | constructor |
public function DefaultCommandFactoryRegistry()
Creates a new DefaultCommandFactoryRegistry instance.
| addCommandFactory | () | method |
public function addCommandFactory(factory:ICommandFactory):void
Adds a new ICommandFactory instance to the current ICommandFactoryRegistry instance.
The ICommandFactory gets added to the start of the list.
factory:ICommandFactory — the new ICommandFactory instance.
|
| createCommand | () | method |
public function createCommand(commandClass:Class):ICommand
Looks up the appropriate ICommandFactory instance to create the specified Class.
commandClass:Class — the specified Class
|
ICommand — an instance of the specified Class, or null if an appropriate ICommandFactory instance wasn't found.
|