Pacotemx.core
Classepublic class DeferredInstanceFromClass
HerançaDeferredInstanceFromClass Inheritance Object
Implementa IDeferredInstance

A deferred instance factory that creates and returns an instance of a specified class. An application can use the getInstance() method to create an instance of the class when it is first needed and get a reference to the instance thereafter.

Veja também

DeferredInstanceFromFunction


Propriedades Públicas
 PropriedadeDefinido por
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
Métodos Públicos
 MétodoDefinido por
  
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
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Detalhes do construtor
DeferredInstanceFromClass()Construtor
public function DeferredInstanceFromClass(generator:Classe)

Constructor.

Parâmetros
generator:Classe — The class whose instance the getInstance() method creates and returns.
Detalhes do método
getInstance()método
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.

Retorna
Object — An instance of the class specified in the DeferredInstanceFromClass constructor.