Packageorg.spicefactory.lib.command.adapter
Interfacepublic interface CommandAdapterFactory
Implementors LightCommandAdapterFactory

Represents a factory for command adapters.



Public Methods
 MethodDefined By
  
createAdapter(instance:Object, domain:ApplicationDomain = null):CommandAdapter
Creates a new adapter for the specified target command.
CommandAdapterFactory
Method Detail
createAdapter()method
public function createAdapter(instance:Object, domain:ApplicationDomain = null):CommandAdapter

Creates a new adapter for the specified target command.

Parameters

instance:Object — the target command that usually does not implement one of the Command interfaces
 
domain:ApplicationDomain (default = null) — the ApplicationDomain to use for reflection

Returns
CommandAdapter — a new adapter for the specified target command or null if the specified instance cannot be handled by this factory