public final class ClassLoaders extends Object
ClassLoader.| Modifier and Type | Field and Description |
|---|---|
static ClassLoader |
BOOTCLASSPATH_CLASS_LOADER
The
ClassLoader that loads the classes on the currently executing JVM's "boot class path", i.e. the JARs
in the JRE's "lib" and "lib/ext" directories, but not the JARs and class directories specified through the
--classpath command line option. |
static ClassLoader |
CLASSPATH_CLASS_LOADER
The
ClassLoader that loads the classes on the currently executing JVM's "class path", i.e. the JARs in
the JRE's "lib" and "lib/ext" directories, and the JARs and class directories specified through the class path. |
| Modifier and Type | Method and Description |
|---|---|
static ClassLoader |
getsResourceAsStream(ResourceFinder finder,
ClassLoader parent)
Creates and returns a
ClassLoader that implements ClassLoader.getResourceAsStream(String) via a
ResourceFinder. |
public static final ClassLoader CLASSPATH_CLASS_LOADER
ClassLoader that loads the classes on the currently executing JVM's "class path", i.e. the JARs in
the JRE's "lib" and "lib/ext" directories, and the JARs and class directories specified through the class path.public static final ClassLoader BOOTCLASSPATH_CLASS_LOADER
ClassLoader that loads the classes on the currently executing JVM's "boot class path", i.e. the JARs
in the JRE's "lib" and "lib/ext" directories, but not the JARs and class directories specified through the
--classpath command line option.public static ClassLoader getsResourceAsStream(ResourceFinder finder, @Nullable ClassLoader parent)
ClassLoader that implements ClassLoader.getResourceAsStream(String) via a
ResourceFinder.
ClassLoader.getResource(String) returns a non-null value iff then resoure finder finds a
LocatableResource.
Notice that ClassLoader.getResources(String) is not overridden.
Copyright © 2021. All rights reserved.