Interface ScriptLoader

All Known Implementing Classes:
DefaultScriptLoader

public interface ScriptLoader
Abstract representation of a class that can be used to provide script loading and initlisation facilities to the browser core.

The loader also takes part in the event model evaluation as well. For this, it must hook into the URL change handling through the VRMLUrlListener interface and participate as part of the larger event model. Method calls are provided in this interface for other classes (eg EventModelEvaluator) to make calls to at the appropriate time in the event model. This interface does not extend the URLListener interface directly as it assumes that an implementation may take other internal arrangements. It assumes that listeners will be registered with the script nodes.

For VRML97/X3D conformant behaviour, the implied architecture of an implementation of this interface is 5 separate buckets of data:

  1. Waiting to be loaded
  2. In the process of being loaded
  3. Load complete (or failed) and waiting for initialize() to be called
  4. Load finished (or failed), nothing left to do
  5. Previously loaded scripts that have had set_url called and need to shutdown the old script and start the load process for others.
Version:
$Revision: 1.2 $
Author:
Justin Couch