|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.ClassLoader
gate.util.ReloadingClassLoader
public class ReloadingClassLoader
| Nested Class Summary | |
|---|---|
protected class |
ReloadingClassLoader.LocationClassLoader
A ClassLoader that loads classes from a location specified by an URL. |
| Field Summary | |
|---|---|
protected Map |
loaders
Map that contains the ReloadingClassLoader.LocationClassLoader for each registered URL. |
protected ClassLoader |
parent
The parent class loader. |
| Constructor Summary | |
|---|---|
ReloadingClassLoader()
Constructs a ReloadingClassLoader using the System Class Loader as a parent. |
|
ReloadingClassLoader(ClassLoader parent)
Constructs a ReloadingClassLoader using a custom class loader as parent. |
|
| Method Summary | |
|---|---|
void |
load(URL url)
Registers an URL as a location where class files can be found. |
protected Class |
loadClass(String name,
boolean resolve)
Loads the class with the specified name. |
void |
unload(URL url)
Removes a registered URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map loaders
ReloadingClassLoader.LocationClassLoader for each registered URL.
protected ClassLoader parent
| Constructor Detail |
|---|
public ReloadingClassLoader(ClassLoader parent)
parent - the parent class loader. The parent class loader should give
access to the system classes at the least (in order to load a new class
access to Object is required).public ReloadingClassLoader()
| Method Detail |
|---|
public void load(URL url)
url - the URL pointing to a jar file or to a directory containing
class files.public void unload(URL url)
url - the URl to be unloaded.
protected Class loadClass(String name,
boolean resolve)
throws ClassNotFoundException
loadClass in class ClassLoadername - The name of the classresolve - If true then resolve the class
ClassNotFoundException - If the class could not be found
|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||