Package | mx.core |
Class | public class DeferredInstanceFromClass |
Inheritance | DeferredInstanceFromClass Object |
Implements | ITransientDeferredInstance |
Language Version: | ActionScript 3.0 |
Product Version: | Flex 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
getInstance()
method to
create an instance of the class when it is first needed and get
a reference to the instance thereafter.
Related API Elements
Public Properties
Public Methods
Method | Defined By | ||
---|---|---|---|
DeferredInstanceFromClass(generator:Class)
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 | ||
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 | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Resets the state of our factory to the initial, uninitialized state. | DeferredInstanceFromClass | ||
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
DeferredInstanceFromClass | () | Constructor |
Method Detail
getInstance | () | method |
public function getInstance():Object
Language Version: | ActionScript 3.0 |
Product Version: | Flex 3 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
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.
ReturnsObject — An instance of the class specified in the
DeferredInstanceFromClass constructor.
|
reset | () | method |
public function reset():void
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4 |
Runtime Versions: | Flash Player 9, AIR 1.1 |
Resets the state of our factory to the initial, uninitialized state. The reference to our cached instance is cleared.
Mon Nov 28 2011, 06:48 AM -08:00