| Package | org.springextensions.actionscript.cairngorm.commands |
| SVN browsing | ICommandFactoryRegistry.as |
| Fisheye | ICommandFactoryRegistry.as |
| Interface | public interface ICommandFactoryRegistry |
| Implementors | CairngormFrontController, DefaultCommandFactoryRegistry |
ICommandFactory instances and
can look up the appropriate factory for a specified command class.
See also
| Method | Defined by | ||
|---|---|---|---|
|
addCommandFactory(factory:ICommandFactory):void
Adds a new The | ICommandFactoryRegistry | ||
|
createCommand(commandClass:Class):ICommand
Looks up the appropriate
ICommandFactory instance to create the specified Class. | ICommandFactoryRegistry | ||
| 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.
|