Packageorg.springextensions.actionscript.cairngorm.commands
SVN browsingDefaultCommandFactoryRegistry.as
FisheyeDefaultCommandFactoryRegistry.as
Classpublic class DefaultCommandFactoryRegistry
ImplementsICommandFactoryRegistry

Default implementation of the ICommandFactoryRegistry interface.



Public Methods
 MethodDefined by
  
Creates a new DefaultCommandFactoryRegistry instance.
DefaultCommandFactoryRegistry
  

Adds a new ICommandFactory instance to the current ICommandFactoryRegistry instance.

The ICommandFactory gets added to the start of the list.

DefaultCommandFactoryRegistry
  
createCommand(commandClass:Class):ICommand
Looks up the appropriate ICommandFactory instance to create the specified Class.
DefaultCommandFactoryRegistry
Constructor detail
DefaultCommandFactoryRegistry()constructor
public function DefaultCommandFactoryRegistry()

Creates a new DefaultCommandFactoryRegistry instance.

Method detail
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.

Parameters
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.

Parameters
commandClass:Class — the specified Class

Returns
ICommand — an instance of the specified Class, or null if an appropriate ICommandFactory instance wasn't found.