Class ClassLoaders
- java.lang.Object
-
- org.codehaus.commons.compiler.lang.ClassLoaders
-
public final class ClassLoaders extends Object
Utility methods around theClassLoader.
-
-
Field Summary
Fields Modifier and Type Field Description static ClassLoaderBOOTCLASSPATH_CLASS_LOADERTheClassLoaderthat loads the classes on the currently executing JVM's "boot class path", i.e.static ClassLoaderCLASSPATH_CLASS_LOADERTheClassLoaderthat loads the classes on the currently executing JVM's "class path", i.e.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClassLoadergetsResourceAsStream(ResourceFinder finder, ClassLoader parent)Creates and returns aClassLoaderthat implementsClassLoader.getResourceAsStream(String)via aResourceFinder.
-
-
-
Field Detail
-
CLASSPATH_CLASS_LOADER
public static final ClassLoader CLASSPATH_CLASS_LOADER
TheClassLoaderthat 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.
-
BOOTCLASSPATH_CLASS_LOADER
public static final ClassLoader BOOTCLASSPATH_CLASS_LOADER
TheClassLoaderthat 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--classpathcommand line option.
-
-
Method Detail
-
getsResourceAsStream
public static ClassLoader getsResourceAsStream(ResourceFinder finder, @Nullable ClassLoader parent)
Creates and returns aClassLoaderthat implementsClassLoader.getResourceAsStream(String)via aResourceFinder.ClassLoader.getResource(String)returns a non-nullvalue iff then resoure finder finds aLocatableResource.Notice that
ClassLoader.getResources(String)is not overridden.
-
-