public class PathClassLoader
extends java.lang.ClassLoader
| Constructor and Description |
|---|
PathClassLoader(java.io.File[] path)
Create a PathCloader, specifying an array of files for the path.
|
PathClassLoader(java.io.File baseDir,
java.lang.String pathString)
Create a PathClassLoader, specifying a path and a
base directory for any relative files on the path.
|
PathClassLoader(java.lang.String pathString)
Create a PathClassLoader, specifying a path.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Class |
loadClass(java.lang.String name,
boolean resolve)
Attempt to load a class if it is not already loaded, and optionally
resolve any imports it might have.
|
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic PathClassLoader(java.lang.String pathString)
pathString - a string containing a sequence of
file paths separated by the platform-specific file
separator, identifying a sequence of locations in which
to look for classes to be loadedFile.pathSeparatorpublic PathClassLoader(java.io.File baseDir,
java.lang.String pathString)
baseDir - the base directory for any relative
files on the pathpathString - a string containing a sequence of
file paths separated by the platform-specific file
separator, identifying a sequence of locations in which
to look for classes to be loadedFile.pathSeparatorpublic PathClassLoader(java.io.File[] path)
path - an array of files, identifying a sequence of locations in which
to look for classes to be loadedprotected java.lang.Class loadClass(java.lang.String name,
boolean resolve)
throws java.lang.ClassNotFoundException
loadClass in class java.lang.ClassLoadername - The fully-qualified name of the class to load.resolve - True if imports should be resolved, false otherwise.java.lang.ClassNotFoundException - if the class was not found.Copyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.