Adobe Flex 2 Language Reference - collected by Jimbob | Back to MY RESOURCES


Packagemx.core
Classpublic class DeferredInstanceFromClass
InheritanceDeferredInstanceFromClass Inheritance Object
ImplementsIDeferredInstance

A deferred instance factory that creates and returns an instance of a specified class. An application can use the getInstance() method to create an instance of the class when it is first needed and get a reference to the instance thereafter.

See also

DeferredInstanceFromFunction


Public Properties
 PropertyDefined by
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Public Methods
 MethodDefined by
  
Constructor.
DeferredInstanceFromClass
  
Creates and returns an instance of the class specified in the DeferredInstanceFromClass constructor, if it does not yet exist; otherwise, returns the already-created class instance.
DeferredInstanceFromClass
 Inherited
setPropertyIsEnumerable(name:String, isEnum:Boolean = true):void
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Constructor detail
DeferredInstanceFromClass()constructor
public function DeferredInstanceFromClass(generator:Class)

Constructor.

Parameters
generator:Class — The class whose instance the getInstance() method creates and returns.
Method detail
getInstance()method
public function getInstance():Object

Creates and returns an instance of the class specified in the DeferredInstanceFromClass constructor, if it does not yet exist; otherwise, returns the already-created class instance.

Returns
Object — An instance of the class specified in the DeferredInstanceFromClass constructor.





collected by Jimbob 2007.05