Packageorg.springextensions.actionscript.cairngorm.commands
SVN browsingCommandFactory.as
FisheyeCommandFactory.as
Classpublic class CommandFactory
ImplementsICommandFactory
SubclassesResponderCommandFactory

ICommandFactory implementation that is capable of creating commands that implements the ICommand interface.



Documentation reference: the command factory


Public Methods
 MethodDefined by
  
Creates a new CommandFactory instance.
CommandFactory
  
canCreate(clazz:Class):Boolean
Returns true if the specified Class implements the ICommand interface
CommandFactory
  
createCommand(clazz:Class):ICommand
Creates a command for the passed command type
CommandFactory
Constructor detail
CommandFactory()constructor
public function CommandFactory()

Creates a new CommandFactory instance.

Method detail
canCreate()method
public function canCreate(clazz:Class):Boolean

Returns true if the specified Class implements the ICommand interface

Parameters
clazz:Class

Returns
Boolean
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