|
j3d.org Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.j3d.util.DynamicClassLoader
public class DynamicClassLoader
A generalised class used to dynamically load other classes according to a preset set of rules.
The class loader uses the CLASSPATH setting to locate and load a given class. If the appropriate methods are called, it will attempt to confirm that the class conforms to a specific interface or base class before actually instantiating that class. Various options are provided for this and the loader automatically checks and issues the appropriate errors.
Internationalisation Resource Names
| Method Summary | |
|---|---|
static java.lang.Object |
loadBasicClass(java.lang.String name)
Load the named class with no checking of the background. |
static java.lang.Object |
loadCheckedClass(java.lang.String name,
java.lang.Class base)
Load the class that has the given class as a super class. |
static java.lang.Object |
loadCheckedClass(java.lang.String name,
java.lang.String base)
Load the class that has the given class as a super class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.Object loadBasicClass(java.lang.String name)
throws java.lang.ClassNotFoundException,
java.io.InvalidClassException
name - The fully qualified name of the class to be loaded
java.lang.NullPointerException - The class name supplied is null or zero
length
java.lang.ClassNotFoundException - We couldn't locate the class anywhere
java.io.InvalidClassException - The class could not be instantiated either
due to internal errors or no default constructor
public static java.lang.Object loadCheckedClass(java.lang.String name,
java.lang.String base)
throws java.lang.ClassNotFoundException,
java.io.InvalidClassException
name - The fully qualified name of the class to be loadedbase - The fully qualified name of the base class to be checked
against
java.lang.NullPointerException - The class name or base class name supplied
is null or zero length
java.lang.ClassNotFoundException - We couldn't locate the class anywhere
java.io.InvalidClassException - The class could not be instantiated either
due to internal errors or no default constructor
public static java.lang.Object loadCheckedClass(java.lang.String name,
java.lang.Class base)
throws java.lang.ClassNotFoundException,
java.io.InvalidClassException
name - The fully qualified name of the class to be loadedbase - The fully qualified name of the base class to be checked
against
java.lang.NullPointerException - The class name or base class name supplied
is null or zero length
java.lang.ClassNotFoundException - We couldn't locate the class anywhere
java.io.InvalidClassException - The class could not be instantiated either
due to internal errors or no default constructor
|
j3d.org Code | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||