| 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 | ||
![]() |
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 | |
![]() |
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():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.
ReturnsObject — An instance of the class specified in the
DeferredInstanceFromClass constructor.
|