Packageorg.springextensions.actionscript.cairngorm.commands
SVN browsingICommandFactoryRegistry.as
FisheyeICommandFactoryRegistry.as
Interfacepublic interface ICommandFactoryRegistry
ImplementorsCairngormFrontController, DefaultCommandFactoryRegistry

Describes an object that can manage a list of ICommandFactory instances and can look up the appropriate factory for a specified command class.

See also

ICommandFactory


Public Methods
 MethodDefined by
  

Adds a new ICommandFactory instance to the current ICommandFactoryRegistry instance.

The ICommandFactory gets added to the start of the list.

ICommandFactoryRegistry
  
createCommand(commandClass:Class):ICommand
Looks up the appropriate ICommandFactory instance to create the specified Class.
ICommandFactoryRegistry
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.