Represents a factory for command adapters.
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
|
Mon Feb 6 2012, 01:04 AM +01:00