| Pacchetto | mx.core |
| Classe | public class DeferredInstanceFromClass |
| Ereditarietà | DeferredInstanceFromClass Object |
| Implementa | ITransientDeferredInstance |
| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | 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.
Elementi API correlati
Proprietà pubbliche
Metodi pubblici
| Metodo | Definito da | ||
|---|---|---|---|
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 | ||
![]() |
Indica se per un oggetto è definita una proprietà specifica. | Object | |
![]() |
Indica se un'istanza della classe Object si trova nella catena di prototipi dell'oggetto specificato come parametro. | Object | |
![]() |
Indica se la proprietà specificata esiste ed è enumerabile. | Object | |
Resets the state of our factory to the initial, uninitialized state. | DeferredInstanceFromClass | ||
![]() |
Imposta la disponibilità di una proprietà dinamica per le operazioni cicliche. | Object | |
![]() |
Restituisce la rappresentazione in formato stringa di questo oggetto, formattato in base alle convenzioni specifiche per le versioni localizzate. | Object | |
![]() |
Restituisce la rappresentazione in formato stringa dell'oggetto specificato. | Object | |
![]() |
Restituisce il valore di base dell'oggetto specificato. | Object | |
Descrizione della funzione di costruzione
DeferredInstanceFromClass | () | Funzione di costruzione |
Descrizione dei metodi
getInstance | () | metodo |
public function getInstance():Object| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 3 |
| Versioni runtime: | 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.
RestituisceObject — An instance of the class specified in the
DeferredInstanceFromClass constructor.
|
reset | () | metodo |
public function reset():void| Versione linguaggio: | ActionScript 3.0 |
| Versione prodotto: | Flex 4 |
| Versioni runtime: | 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.
Tue Jun 12 2018, 02:44 PM Z
Nascondi proprietà pubbliche ereditate
Mostra proprietà pubbliche ereditate