| Package | org.springextensions.actionscript.cairngorm.commands |
| SVN browsing | ResponderCommandFactory.as |
| Fisheye | ResponderCommandFactory.as |
| Class | public class ResponderCommandFactory |
| Inheritance | ResponderCommandFactory CommandFactory |
| Implements | IResponderCommandFactory |
ICommandFactory implementation that is capable of creating commands that implements the ICommand interface.
Documentation reference: the command factory
| Method | Defined 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
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. | ResponderCommandFactory | ||
| ResponderCommandFactory | () | constructor |
public function ResponderCommandFactory()
Creates a new ResponderCommandFactory instance.
| 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.
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.
clazz:Class |
Boolean |
| createCommand | () | method |
public override function createCommand(clazz:Class):ICommand
Creates an instance of the specified Class and assigns it an appropriate business delegate.
clazz:Class |
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.
commandClass:Class — The specified command Class
|
IBusinessDelegateFactory —
null or a valid IBusinessDelegateFactory instance.
|