Lines Matching defs:to

8  * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
66 * href="#name">binary name</a> of a class, a class loader should attempt to
68 * typical strategy is to transform the name into a file name and then read a
72 * Class#getClassLoader() reference} to the <tt>ClassLoader</tt> that defined
82 * <p> Applications implement subclasses of <tt>ClassLoader</tt> in order to
86 * <p> Class loaders may typically be used by security managers to indicate
89 * <p> The <tt>ClassLoader</tt> class uses a delegation model to search for
91 * associated parent class loader. When requested to find a class or
93 * class or resource to its parent class loader before attempting to find the
99 * <em>parallel capable</em> class loaders and are required to register
104 * capable by default. However, its subclasses still need to register themselves
107 * hierarchical, class loaders need to be parallel capable, otherwise class
108 * loading can lead to deadlocks because the loader lock is held for the
125 * reference other classes. To determine the class(es) referred to, the Java
129 * <p> For example, an application could create a network class loader to
139 * #findClass <tt>findClass</tt>} and <tt>loadClassData</tt> to load a class
141 * it should use the method {@link #defineClass <tt>defineClass</tt>} to
163 * <p> Any class name provided as a {@link String} parameter to methods in
236 // Maps class name to the corresponding lock object when the current
238 // Note: VM also uses this field to decide if the current class loader
242 // Hashtable that maps packages to certs
249 // is to keep the classes from being GC'ed until the loader is GC'ed.
261 // Invoked by the VM to record every loaded class with this loader.
267 // to its corresponding Package object.
344 * machine to resolve class references. Invoking this method is equivalent
345 * to invoking {@link #loadClass(String, boolean) <tt>loadClass(name,
367 * <li><p> Invoke {@link #findLoadedClass(String)} to check if the class
372 * loader built-in to the virtual machine is used, instead. </p></li>
374 * <li><p> Invoke the {@link #findClass(String)} method to find the
383 * <p> Subclasses of <tt>ClassLoader</tt> are encouraged to override {@link
422 // to find the class.
448 * The name of the to-be-loaded class
471 // This method is invoked by the virtual machine to load a class.
555 * If an attempt is made to add this class to a package that
558 * to define a class in a package with a fully-qualified name
579 * <tt>ProtectionDomain</tt>} to the newly defined class. The
588 * <p> To assign a specific <tt>ProtectionDomain</tt> to the class, use
620 * If an attempt is made to add this class to a package that
678 // Class format error - try to transform the bytecode and
699 // Rethrow original ClassFormatError if unable to transform
700 // bytecode to well-formed
720 * <tt>null</tt>, then a default domain will be assigned to the class as
728 * <tt>ProtectionDomain</tt> of the class. Any classes added to that
739 * must be equal to the <a href="#name">binary name</a> of the class
769 * If <tt>name</tt> is not equal to the <a href="#name">binary
777 * If an attempt is made to add this class to a package that
806 * <tt>null</tt>, then a default domain will be assigned to the class as
812 * are identical to those specified in the documentation for {@link
851 * If <tt>name</tt> is not equal to the <a href="#name">binary
855 * If an attempt is made to add this class to a package that
913 // true if the name is null or has the potential to be a valid binary name
950 * check to make sure the certs for the new class (certs) are the same as
996 * used by a class loader to link a class. If the class <tt>c</tt> has
1003 * The class to link
1024 * because most class loaders need to override just {@link
1119 * built-in to the virtual machine is searched. That failing, this method
1120 * will invoke {@link #findResource(String)} to find the resource. </p>
1127 * doesn't have adequate privileges to get the resource.
1161 * access to will not be in the enumeration.
1184 * should override this method to specify where to find resources. </p>
1201 * implementations should override this method to specify where to load
1227 * is no way to change it back. </p>
1242 * Find a resource of the specified name from the search path used to load
1263 * Finds all resources of the specified name from the search path used to
1350 * used to load classes. This method locates the resource through the
1375 * use <tt>null</tt> to represent the bootstrap class loader. This method
1385 * <tt>RuntimePermission("getClassLoader")</tt>} permission to verify
1386 * access to the parent class loader is permitted. If not, a
1393 * method doesn't allow access to this class loader's parent class
1412 * typically the class loader used to start the application.
1423 * taken to be the name of a class that will be returned as the system
1429 * to be the system class loader.
1438 * <tt>RuntimePermission("getClassLoader")</tt>} permission to verify
1439 * access to the system class loader. If not, a
1447 * method doesn't allow access to the system class loader.
1521 // check. A class loader 'from' can access class loader 'to' if
1522 // class loader 'from' is same as class loader 'to' or an ancestor
1523 // of 'to'. The class loader in a system domain can access
1526 ClassLoader to)
1528 if (from == to)
1534 return !to.isAncestor(from);
1562 // Set to true once the system class loader has been set
1571 * class loaders to define the packages for their classes. Packages must
1599 * respect to the given code source {@link java.net.URL
1636 * @return The <tt>Package</tt> corresponding to the given name, or
1702 * method to locate the native libraries that belong to classes loaded with
1730 * the VM when it loads the library, and used by the VM to pass the correct
1731 * version of JNI to the native methods. </p>
1737 // opaque handle to native library, used in native code.
1777 // Invoked in the VM to determine the context class in
1787 // Native libraries belonging to system classes.
1833 // Invoked in the java.lang.Runtime class to implement load and loadLibrary.
1854 "ClassLoader.findLibrary failed to return an absolute path: " + libfilename);
1933 * Thus we can use a static stack to hold the list of libraries
1996 // Maps String packageName to Boolean package default assertion status Note
1998 // is null then we are delegating assertion status queries to the VM, i.e.,
2004 // Maps String fullyQualifiedClassName to Boolean assertionStatus If this
2005 // field is null then we are delegating assertion status queries to the VM,
2038 * classes initialized in the future that belong to the named package or
2046 * <p> In the event that multiple package defaults apply to a given class,
2047 * the package default pertaining to the most specific package takes
2050 * them, the latter package default applies to classes in
2059 * is to be set. A <tt>null</tt> value indicates the unnamed
2066 * belonging to the named package or any of its subpackages will
2095 * assertion status is to be set.
2098 * <tt>true</tt> if the named class is to have assertions
2100 * class is to have assertions disabled.
2114 * Sets the default assertion status for this class loader to
2117 * provided so that class loaders can be made to ignore any command line or
2126 * them to empty maps, effectively ignoring any present settings.
2136 * Returns the assertion status that would be assigned to the specified
2137 * class if it were to be initialized at the time this method is invoked.
2140 * status pertains to this class, the most recent setting for the most