public class ClassLoad
extends java.lang.Object
Constructor | Description |
---|---|
ClassLoad() |
|
ClassLoad(java.lang.String pname) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Class<?> |
getClass(java.lang.String cname) |
|
java.lang.Object |
newInst(java.lang.String cname) |
public ClassLoad(java.lang.String pname) throws java.lang.Exception
pname
- is the directory from which to load a class.
Specifying a class off the class path (such as myjava) allows
reloading an updated and recompiled Java class without exiting
and restarting the parent application.java.lang.Exception
public ClassLoad()
public java.lang.Class<?> getClass(java.lang.String cname) throws java.lang.Exception
cname
- is the name of the class in directory pname above.java.lang.Exception
public java.lang.Object newInst(java.lang.String cname) throws java.lang.Exception
cname
- is the name of the class in directory pname above.java.lang.Exception