Packageorg.spicefactory.lib.command.light
Classpublic class LightCommandAdapterFactory
InheritanceLightCommandAdapterFactory Inheritance Object
Implements CommandAdapterFactory

A CommandAdapterFactory implementation that creates adapters from commands that adhere to the conventions of Spicelib's "Light Commands".



Public Methods
 MethodDefined By
  
createAdapter(instance:Object, domain:ApplicationDomain = null):CommandAdapter
Creates a new adapter for the specified target command.
LightCommandAdapterFactory
  
register():void
[static] Registers this adapter, making Light Commands available for all command builder types.
LightCommandAdapterFactory
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
register()method 
public static function register():void

Registers this adapter, making Light Commands available for all command builder types. Calling this method more than once has no effect.