| Package | mx.core |
| Class | public class DeferredInstanceFromClass |
| Inheritance | DeferredInstanceFromClass Object |
| Implements | IDeferredInstance |
getInstance() method to
create an instance of the class when it is first needed and get
a reference to the instance thereafter.
See also
| 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 | ||
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
![]() |
Returns the string representation of the specified object.
| Object | |
![]() |
Returns the primitive value of the specified object.
| Object | |
| DeferredInstanceFromClass | () | constructor |
public function DeferredInstanceFromClass(generator:Class)Constructor.
Parametersgenerator:Class — The class whose instance the getInstance()
method creates and returns.
|
| getInstance | () | method |
public function getInstance():ObjectCreates 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.
|