Pacotemx.core
Classepublic class DeferredInstanceFromFunction
HerançaDeferredInstanceFromFunction Inheritance Object
Implementa IDeferredInstance

A deferred instance factory that uses a generator function to create an instance of the required object. An application uses the getInstance() method to create an instance of an object when it is first needed and get a reference to the object thereafter.

Veja também

DeferredInstanceFromClass


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.
DeferredInstanceFromFunction
  
Returns a reference to an instance of the desired object.
DeferredInstanceFromFunction
 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
DeferredInstanceFromFunction()Construtor
public function DeferredInstanceFromFunction(generator:Function)

Constructor.

Parâmetros
generator:Function — A function that creates and returns an instance of the required object.
Detalhes do método
getInstance()método
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.

Retorna
Object — An instance of the object.