Name

LzInstantiatorClass — Handles application instantiation.

Synopsis

JavaScript: LzInstantiatorClass
Type: Class
Access: public
Topic: LZX.Runtime
Declared in: WEB-INF/lps/lfc/services/LzInstantiator.lzs

Description

The instantiator is responsible for timing the creation and initialization of Laszlo applications. Because of Laszlo's declarative style, applications must be instantiated in two passes -- one where all of the objects are created and another where all of the references are resolved. This ensures that order rarely matters in an lzx file, and allows objects to refer to one another without making the programmer worry about initialization order or messy callbacks.

If an OpenLaszlo application is slow to instantiate, LzNodes supply the initstage attribute. The instantiator also has a few exposed methods and attributes that can be used to control the instantiation behavior of a Laszlo app.

Superclass Chain

LzInstantiatorClass

Known Subclasses

Details

Properties (13)

checkQDel
public var checkQDel = null;
halted
public var halted = false;
isdatareplicating
public var isdatareplicating = false;
isimmediate
public var isimmediate = false;
istrickling
public var istrickling = false;
isUpdating
public var isUpdating = false;
makeQ
public var makeQ;
safe
public var safe = true;
syncNew
public var syncNew = true;
timeout
public var timeout : Number = 500;
The length of time in miliseconds to spend synchronously creating nodes before allowing an idle event to pass. By default this is 500.
trickleQ
public var trickleQ;
trickletime
public var trickletime : Number = 10;
The length of time to spend creating initstage= "late" nodes before allowing an idle event to pass. By default this is 10 miliseconds.
tricklingQ
public var tricklingQ;

Methods (3)

halt()
public function halt();
Stops the instantiatior until resume is called.
initialize()
public function initialize();
resume()
public function resume();
Restarts the instantiatior after it is stopped with halt

JavaScript Synopsis

public LzInstantiatorClass {
  public var checkQDel  = null;
  public var halted  = false;
  public var isdatareplicating  = false;
  public var isimmediate  = false;
  public var istrickling  = false;
  public var isUpdating  = false;
  public var makeQ ;
  public var safe  = true;
  public var syncNew  = true;
  public var timeout  : Number = 500;
  public var trickleQ ;
  public var trickletime  : Number = 10;
  public var tricklingQ ;
  prototype public function halt ();
  prototype public function initialize ();
  prototype public function resume ();
}