Lines Matching defs:ClassLoader

65  * class <tt>ClassLoader</tt> is an abstract class.  Given the <a
72 * Class#getClassLoader() reference} to the <tt>ClassLoader</tt> that defined
82 * <p> Applications implement subclasses of <tt>ClassLoader</tt> in order to
89 * <p> The <tt>ClassLoader</tt> class uses a delegation model to search for
90 * classes and resources. Each instance of <tt>ClassLoader</tt> has an
92 * resource, a <tt>ClassLoader</tt> instance will delegate the search for the
96 * serve as the parent of a <tt>ClassLoader</tt> instance.
102 * #registerAsParallelCapable <tt>ClassLoader.registerAsParallelCapable</tt>}
103 * method. Note that the <tt>ClassLoader</tt> class is registered as parallel
133 * ClassLoader loader&nbsp;= new NetworkClassLoader(host,&nbsp;port);
145 * class NetworkClassLoader extends ClassLoader {
164 * <tt>ClassLoader</tt> must be a binary name as defined by
178 public abstract class ClassLoader {
188 private final ClassLoader parent;
197 private static final Set<Class<? extends ClassLoader>> loaderTypes =
199 new WeakHashMap<Class<? extends ClassLoader>, Boolean>());
201 synchronized (loaderTypes) { loaderTypes.add(ClassLoader.class); }
209 static boolean register(Class<? extends ClassLoader> c) {
229 static boolean isRegistered(Class<? extends ClassLoader> c) {
279 private ClassLoader(Void unused, ClassLoader parent) {
315 protected ClassLoader(ClassLoader parent) {
320 * Creates a new class loader using the <tt>ClassLoader</tt> returned by
334 protected ClassLoader() {
383 * <p> Subclasses of <tt>ClassLoader</tt> are encouraged to override {@link
442 * behaves as follows. If this ClassLoader object is registered as
445 * ClassLoader object. </p>
1022 * might have more than one <tt>ClassLoader</tt> associated with it.
1023 * Subclasses of <tt>ClassLoader</tt> need not usually invoke this method,
1035 * @see #ClassLoader(ClassLoader)
1041 ClassLoader system = getSystemClassLoader();
1236 Class<? extends ClassLoader> callerClass =
1237 Reflection.getCallerClass().asSubclass(ClassLoader.class);
1255 ClassLoader system = getSystemClassLoader();
1285 ClassLoader system = getSystemClassLoader();
1389 * @return The parent <tt>ClassLoader</tt>
1399 public final ClassLoader getParent() {
1411 * delegation parent for new <tt>ClassLoader</tt> instances, and is
1426 * type <tt>ClassLoader</tt> which is used as the delegation parent. An
1442 * @return The system <tt>ClassLoader</tt> for delegation, or
1465 public static ClassLoader getSystemClassLoader() {
1509 boolean isAncestor(ClassLoader cl) {
1510 ClassLoader acl = this;
1525 private static boolean needsClassLoaderPermissionCheck(ClassLoader from,
1526 ClassLoader to)
1538 static ClassLoader getClassLoader(Class<?> caller) {
1547 static void checkClassLoaderPermission(ClassLoader cl, Class<?> caller) {
1551 ClassLoader ccl = getClassLoader(caller);
1559 // @GuardedBy("ClassLoader.class")
1560 private static ClassLoader scl;
1563 // @GuardedBy("ClassLoader.class")
1570 * Defines a package by name in this <tt>ClassLoader</tt>. This allows
1671 * <tt>ClassLoader</tt>
1733 * @see ClassLoader
1768 ClassLoader.nativeLibraryContext.push(this);
1772 ClassLoader.nativeLibraryContext.pop();
1780 return ClassLoader.nativeLibraryContext.peek().fromClass;
1836 ClassLoader loader =
1854 "ClassLoader.findLibrary failed to return an absolute path: " + libfilename);
1908 ClassLoader loader =
1972 static long findNative(ClassLoader loader, String name) {
1999 // none of this ClassLoader's assertion status modification methods have
2006 // i.e., none of this ClassLoader's assertion status modification methods
2213 implements PrivilegedExceptionAction<ClassLoader> {
2214 private ClassLoader parent;
2216 SystemClassLoaderAction(ClassLoader parent) {
2220 public ClassLoader run() throws Exception {
2227 .getDeclaredConstructor(new Class[] { ClassLoader.class });
2228 ClassLoader sys = (ClassLoader) ctor.newInstance(