|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xj3d.ui.construct.ClassLoadUtilities
public class ClassLoadUtilities
Utility methods for loading classes.
| Field Summary | |
|---|---|
protected ErrorReporter |
errorReporter
The error reporting mechanism |
| Constructor Summary | |
|---|---|
ClassLoadUtilities()
Constructor |
|
ClassLoadUtilities(ErrorReporter reporter)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.Object |
loadClass(java.lang.String classname,
boolean required)
Load a class instance constructed from the default constructor. |
java.lang.Object |
loadClass(java.lang.String classname,
java.lang.Object[] constParams,
java.lang.Class[] paramTypes,
boolean required)
Load a class instance constructed with the argument parameters. |
protected ScriptEngine |
loadScriptEngine(java.lang.String classname,
BrowserCore core,
ViewpointManager viewpointManager,
RouteManager routeManager,
FrameStateManager stateManager,
WorldLoaderManager worldLoader,
boolean required)
Load a script engine. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ErrorReporter errorReporter
| Constructor Detail |
|---|
public ClassLoadUtilities()
public ClassLoadUtilities(ErrorReporter reporter)
reporter - The error reporter| Method Detail |
|---|
public java.lang.Object loadClass(java.lang.String classname,
boolean required)
classname - The fully qualified name of the class to loadrequired - Is this class required for operation, If true - an exception
will be thrown if the class fails to load for any reason. If false - an
error report will be generated if the class fails to load, but execution
will continue and a null will be returned.
InvalidConfigurationException - If the required flag is true and the
class cannot be loaded.
public java.lang.Object loadClass(java.lang.String classname,
java.lang.Object[] constParams,
java.lang.Class[] paramTypes,
boolean required)
classname - The fully qualified name of the class to load.constParams - The array of parameters to pass to the Class's constructor.paramTypes - The array of class objects, matching the constParams argument
that are used to select the appropriate Class constructor.required - Is this class required for operation. If true - an exception
will be thrown if the class fails to load for any reason. If false - an
error report will be generated if the class fails to load, but execution
will continue and a null will be returned.
protected ScriptEngine loadScriptEngine(java.lang.String classname,
BrowserCore core,
ViewpointManager viewpointManager,
RouteManager routeManager,
FrameStateManager stateManager,
WorldLoaderManager worldLoader,
boolean required)
classname - The fully qualified name of the script engine class to loadcore - The browser coreviewpointManager - TherouteManager - The route managerstateManager - The frame state managerworldLoader - The manager of the world loadersrequired - Is this class required for operation. If true - an exception
will be thrown if the class fails to load for any reason. If false - an
error report will be generated if the class fails to load, but execution
will continue and a null will be returned.
InvalidConfigurationException - If the required flag is true and the
class cannot be loaded.
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||