| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides java. Implements java. Closes this URLClassLoader, so that it can no longer be used to load new classes or resources that are defined by this loader. |
| public URL | getResource(String
The resource name name)Overrides java. Finds the resource with the given name. |
| public Enumeration | getResources(String
The resource name name)Overrides java. Finds all the resources with the given name. |
| public boolean | |
| private boolean | |
| private boolean | |
| protected Class | loadClass(String
The binary name of the class name, boolean If resolve)true then resolve the classOverrides java. Loads the class with the specified binary name. |
| closed | back to summary |
|---|---|
| private volatile boolean closed | |
| isolatedClasses | back to summary |
|---|---|
| private List<String> isolatedClasses | |
| IsolatingClassLoader | back to summary |
|---|---|
| public IsolatingClassLoader(URL[] urls, ClassLoader parent, List<String> isolatedClasses) | |
| 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
| |
| getResource | back to summary |
|---|---|
| public URL getResource(String name) Overrides java. Doc from java. Finds the resource with the given name. A resource is some data (images, audio, text, etc) that can be accessed by class code in a way that is independent of the location of the code. The name of a resource is a ' Resources in named modules are subject to the encapsulation rules
specified by
| |
| getResources | back to summary |
|---|---|
| public Enumeration Overrides java. Doc from java. Finds all the resources with the given name. A resource is some data (images, audio, text, etc) that can be accessed by class code in a way that is independent of the location of the code. The name of a resource is a Resources in named modules are subject to the encapsulation rules
specified by
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() | |
| isIsolatedClass | back to summary |
|---|---|
| private boolean isIsolatedClass(String name) | |
| isVertxOrSystemClass | back to summary |
|---|---|
| private boolean isVertxOrSystemClass(String name) | |
| loadClass | back to summary |
|---|---|
| protected Class Overrides java. Doc from java. Loads the class with the specified binary name. The default implementation of this method searches for classes in the following order:
If the class was found using the above steps, and the
Subclasses of Unless overridden, this method synchronizes on the result of
| |