OverviewSingleDeprecatedPropertiesEventsXSL Parameters

jsx3.lang

class ClassLoader

Object
->jsx3.lang.ClassLoader

All Implemented Interfaces:

jsx3.util.EventDispatcher

class ClassLoader
extends Object
The class loader initializes the system and loads applications and add-ins. One instance of this class (jsx3.CLASS_LOADER) is created when the system loads.

The following deployment parameters affect the behavior of the class loader:

See Also:

getType(), jsx3.CLASS_LOADER

Field Summary
static int
LOAD_ALWAYS
static int
LOAD_AUTO
Method Summary
String
Returns the browser type as determined by the class loader.
jsx3.util.Job
jsx3.util.Job
loadApp(strAppPath : String, objGUI : HTMLElement, objEnv : Object<String, String>)
void
loadClass(strClass : String)
Loads a GI class synchronously.
void
loadClassAsync(strClass : String, cb : Function)
Loads a GI class asynchronously.
void
loadJSFile(strURI : String, cb : Function)
Loads a JavaScript file asynchronously.
boolean
Loads a JavaScript file synchronously.
Methods Inherited From jsx3.util.EventDispatcher
publish, subscribe, unsubscribe, unsubscribeAll
Methods Inherited From Object
toString
Field Detail

LOAD_ALWAYS

static final int LOAD_ALWAYS

LOAD_AUTO

static final int LOAD_AUTO
Method Detail

getType

String getType()
Returns the browser type as determined by the class loader. The possible return values are:

Returns:

 

loadAddin

jsx3.util.Job loadAddin(objAddin : String | jsx3.app.AddIn)

Parameters:

objAddin

Returns:

 

Since:

3.6

loadApp

jsx3.util.Job loadApp(strAppPath : String, objGUI : HTMLElement, objEnv : Object<String, String>)

Parameters:

strAppPath
objGUI
objEnv

Returns:

 

Since:

3.6

loadClass

void loadClass(strClass : String)
Loads a GI class synchronously. The location of the JavaScript file is determined by the classpath.

Parameters:

strClassthe fully-qualified name of the class to load.

Throws:

{jsx3.lang.Exception}if no registered classpath matched the class name or if the loaded JS file did not define the class to load.

Since:

3.5

loadClassAsync

void loadClassAsync(strClass : String, cb : Function)
Loads a GI class asynchronously. The location of the JavaScript file is determined by the classpath.

Parameters:

strClassthe fully-qualified name of the class to load.
cban optional callback function, which will be passed the class object when the class loads.

Since:

3.9

loadJSFile

void loadJSFile(strURI : String, cb : Function)
Loads a JavaScript file asynchronously.

Parameters:

strURI
cban optional callback function, which will be passed the script URI when the script loads.

Since:

3.9

loadJSFileSync

boolean loadJSFileSync(strURI : String)
Loads a JavaScript file synchronously.

Parameters:

strURI

Throws:

{Object}if evaluating the text content of the loaded file raises a JavaScript error.

Returns:

true if the file was loaded successfully. 

Since:

3.5