Packageorg.springextensions.actionscript.cairngorm.commands
SVN browsingICommandFactory.as
FisheyeICommandFactory.as
Interfacepublic interface ICommandFactory
SubinterfacesIResponderCommandFactory
ImplementorsCairngormFrontController, CommandFactory, DefaultCommandFactoryRegistry

Implemented by factory objects that are capable of creating ICommand instances.



Documentation reference: the command factory


Public Methods
 MethodDefined 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
Method detail
canCreate()method
public function canCreate(clazz:Class):Boolean

Returns true if the current ICommandFactory is able to create the specified Class

Parameters
clazz:Class — The specified Class instance.

Returns
Boolean — True if the factory is able to create the specified Class instance.
createCommand()method 
public function createCommand(clazz:Class):ICommand

Creates a command for the passed command type

Parameters
clazz:Class — The Command Type

Returns
ICommand — The new ICommand instance