Packageorg.springextensions.actionscript.cairngorm.commands
SVN browsingResponderCommandFactory.as
FisheyeResponderCommandFactory.as
Classpublic class ResponderCommandFactory
InheritanceResponderCommandFactory Inheritance CommandFactory
ImplementsIResponderCommandFactory

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 ResponderCommandFactory instance.
ResponderCommandFactory
  
addBusinessDelegateFactory(factory:IBusinessDelegateFactory, commandClasses:Array):void
Adds a IBusinessDelegateFactory that will be used to inject business delegates in the created ICommand instances.
ResponderCommandFactory
  
canCreate(clazz:Class):Boolean
Returns true if the current ResponderCommandFactory contains a IBusinessDelegateFactory that is able to configure the specified Class.
ResponderCommandFactory
  
createCommand(clazz:Class):ICommand
Creates an instance of the specified Class and assigns it an appropriate business delegate.
ResponderCommandFactory
Protected Methods
 MethodDefined by
  
Returns null or a valid IBusinessDelegateFactory instance if the current ResponderCommandFactory contains a IBusinessDelegateFactory that is able to configure the specified Class.
ResponderCommandFactory
Constructor detail
ResponderCommandFactory()constructor
public function ResponderCommandFactory()

Creates a new ResponderCommandFactory instance.

Method detail
addBusinessDelegateFactory()method
public function addBusinessDelegateFactory(factory:IBusinessDelegateFactory, commandClasses:Array):void

Adds a IBusinessDelegateFactory that will be used to inject business delegates in the created ICommand instances.

Parameters
factory:IBusinessDelegateFactory
 
commandClasses:Array
canCreate()method 
public override function canCreate(clazz:Class):Boolean

Returns true if the current ResponderCommandFactory contains a IBusinessDelegateFactory that is able to configure the specified Class.

Parameters
clazz:Class

Returns
Boolean
createCommand()method 
public override function createCommand(clazz:Class):ICommand

Creates an instance of the specified Class and assigns it an appropriate business delegate.

Parameters
clazz:Class

Returns
ICommand
lookupBusinessDelegateFactory()method 
protected function lookupBusinessDelegateFactory(commandClass:Class):IBusinessDelegateFactory

Returns null or a valid IBusinessDelegateFactory instance if the current ResponderCommandFactory contains a IBusinessDelegateFactory that is able to configure the specified Class.

Parameters
commandClass:Class — The specified command Class

Returns
IBusinessDelegateFactory — null or a valid IBusinessDelegateFactory instance.