| Package | mx.core |
| Class | public class DeferredInstanceFromFunction |
| Inheritance | DeferredInstanceFromFunction Object |
| Implements | IDeferredInstance |
getInstance() method to
create an instance of an object when it is first needed and get
a reference to the object thereafter.
See also
| Method | Defined by | ||
|---|---|---|---|
|
DeferredInstanceFromFunction(generator:Function)
Constructor.
| DeferredInstanceFromFunction | ||
|
Returns a reference to an instance of the desired object.
| DeferredInstanceFromFunction | ||
![]() |
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 | |
| DeferredInstanceFromFunction | () | constructor |
public function DeferredInstanceFromFunction(generator:Function)Constructor.
Parametersgenerator:Function — A function that creates and returns an instance
of the required object.
|
| getInstance | () | method |
public function getInstance():Object
Returns a reference to an instance of the desired object.
If no instance of the required object exists, calls the function
specified in this class' generator constructor parameter.
Object —
An instance of the object.
|
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/apollo/1.0/aslr/mx/core/DeferredInstanceFromFunction.html