| Modifier and Type | Field and Description |
|---|---|
| private ClassPathManager |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addURL(URL
the URL to be added to the search path of URLs url)Overrides java. |
| public void | close()
Overrides java. Implements java. |
| protected Class | |
| private Class | |
| protected Class | findClass(String
the name of the class name)Overrides java. |
| protected byte[] | |
| private String |
| classPath | back to summary |
|---|---|
| private ClassPathManager classPath | |
| ExtensibleURLClassLoader | back to summary |
|---|---|
| public ExtensibleURLClassLoader(URL[] urls, ClassLoader parent) | |
| addURL | back to summary |
|---|---|
| protected void addURL(URL url) Overrides java. Doc from java. Appends the specified URL to the list of URLs to search for classes and resources.
If the URL specified is
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this URLClassLoader, so that it can no longer be used to load new classes or resources that are defined by this loader. Classes and resources defined by any of this loader's parents in the delegation hierarchy are still accessible. Also, any classes or resources that are already loaded, are still accessible.
In the case of jar: and file: URLs, it also closes any files
that were opened by it. If another thread is loading a
class when the
The method makes a best effort attempt to close all opened files,
by catching
| |
| defineClass | back to summary |
|---|---|
| protected Class | |
| defineClass | back to summary |
|---|---|
| private Class | |
| findClass | back to summary |
|---|---|
| protected Class Overrides java. Doc from java. Finds and loads the class with the specified name from the URL search path. Any URLs referring to JAR files are loaded and opened as needed until the class is found.
| |
| getBytes | back to summary |
|---|---|
| protected byte[] getBytes(String name) throws IOException | |
| getPackageName | back to summary |
|---|---|
| private String getPackageName(String className) | |