|
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
java.security.SecureClassLoader
java.net.URLClassLoader
gate.util.ReloadingClassLoader.LocationClassLoader
protected class ReloadingClassLoader.LocationClassLoader
A ClassLoader that loads classes from a location specified by an URL.
Field Summary | |
---|---|
protected Map |
classCache
A cache for classes already found and loaded. |
protected URL |
location
The location to be searched for new classes. |
Constructor Summary | |
---|---|
ReloadingClassLoader.LocationClassLoader(URL location)
Constructs a LocationClassLoader for a specified URL. |
Method Summary | |
---|---|
protected Class |
loadClass(String name,
boolean resolve)
Loads the class with the specified name. |
Methods inherited from class java.net.URLClassLoader |
---|
addURL, definePackage, findClass, findResource, findResources, getPermissions, getURLs, newInstance, newInstance |
Methods inherited from class java.security.SecureClassLoader |
---|
defineClass, defineClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Map classCache
protected URL location
Constructor Detail |
---|
public ReloadingClassLoader.LocationClassLoader(URL location)
location
- the URL to be searched for class files.Method Detail |
---|
protected Class loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class ClassLoader
name
- 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 |