Package | com.adobe.gravity.utility.factory |
Class | public class FactoryAdapter |
Inheritance | FactoryAdapter Object |
Implements | IFactory |
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Runtime Versions: | AIR 1.1, Flash Player 9 |
Public Properties
Public Methods
Method | Defined By | ||
---|---|---|---|
Construct a FactoryAdapter that will use the provided function to produce instances. | FactoryAdapter | ||
Indicates whether an object has a specified property defined. | Object | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Create a new instance of an object by calling the provided factory function with the parameters passed in the constructor followed by the parameters provided here. | FactoryAdapter | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object |
Constructor Detail
FactoryAdapter | () | Constructor |
public function FactoryAdapter(factoryFunction:Function, params:Array)
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Runtime Versions: | AIR 1.1, Flash Player 9 |
Construct a FactoryAdapter that will use the provided function to produce instances.
ParametersfactoryFunction:Function — The actual factory function. The function must return an IToken; the success handlers of the IToken must receive a single object, that object being the "new instance" of interest.
| |
params:Array — Any parameters to be passed to factoryFunction.
|
Method Detail
newInstance | () | method |
public function newInstance(... params):com.adobe.gravity.utility.async:IToken
Language Version: | ActionScript 3.0 |
Product Version: | Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10 |
Runtime Versions: | AIR 1.1, Flash Player 9 |
Create a new instance of an object by calling the provided factory function with the parameters passed in the constructor followed by the parameters provided here.
Parameters
... params — Any extra parameters to be provided to the factory function.
|
com.adobe.gravity.utility.async:IToken — A token used to set success and failure handlers to be called when the operation has completed. The success handler must be called with the new instance.
|
Mon Nov 28 2011, 06:48 AM -08:00