|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
de.ukn.hci.squidy.common.dynamiccode.DynamicCodeClassLoader
public class DynamicCodeClassLoader
DynamicCode.
Date: Mar 30, 2009 Time: 7:19:03 PM
| Field Summary | |
|---|---|
static DynamicCodeClassLoader |
DYNAMIC_CODE
|
static File |
DYNAMIC_CODE_REPOSITORY
|
| Constructor Summary | |
|---|---|
DynamicCodeClassLoader()
|
|
DynamicCodeClassLoader(ClassLoader parentClassLoader)
|
|
DynamicCodeClassLoader(String compileClasspath,
ClassLoader parentClassLoader)
|
|
| Method Summary | |
|---|---|
boolean |
addSourceDir(File srcDir)
Add a directory that contains the source of dynamic java code. |
URL |
getResource(String resource)
Get a resource from added source directories. |
InputStream |
getResourceAsStream(String resource)
Get a resource stream from added source directories. |
Class<?> |
loadClass(String className)
Returns the up-to-date dynamic class by name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final File DYNAMIC_CODE_REPOSITORY
public static final DynamicCodeClassLoader DYNAMIC_CODE
| Constructor Detail |
|---|
public DynamicCodeClassLoader()
public DynamicCodeClassLoader(ClassLoader parentClassLoader)
public DynamicCodeClassLoader(String compileClasspath,
ClassLoader parentClassLoader)
compileClasspath - used to compile dynamic classesparentClassLoader - the parent of the class loader that loads all the dynamic
classes| Method Detail |
|---|
public boolean addSourceDir(File srcDir)
srcDir -
public Class<?> loadClass(String className)
throws ClassNotFoundException
loadClass in class ClassLoaderclassName -
ClassNotFoundException - if source file not found or compilation errorpublic URL getResource(String resource)
getResource in class ClassLoaderresource -
public InputStream getResourceAsStream(String resource)
getResourceAsStream in class ClassLoaderresource -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||