OverviewSingleDeprecated

jsx3.lang

class ClassLoader

Object
->jsx3.lang.ClassLoader

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.
void
loadClass(strClass : String)
Loads a GI class synchronously.
boolean
Loads a JavaScript file synchronously.
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:

 

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.

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.