亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? classloader.java

?? 一個小巧而且實現很完整的JAVA虛擬機
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* ClassLoader.java -- responsible for loading classes into the VM   Copyright (C) 1998, 1999, 2001, 2002, 2003 Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA02111-1307 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package java.lang;import java.io.InputStream;import java.io.IOException;import java.lang.reflect.Constructor;import java.net.URL;import java.security.CodeSource;import java.security.PermissionCollection;import java.security.Policy;import java.security.ProtectionDomain;import java.util.Enumeration;import java.util.HashMap;import java.util.Map;import gnu.java.util.DoubleEnumeration;import gnu.java.util.EmptyEnumeration;/** * The ClassLoader is a way of customizing the way Java gets its classes * and loads them into memory.  The verifier and other standard Java things * still run, but the ClassLoader is allowed great flexibility in determining * where to get the classfiles and when to load and resolve them. For that * matter, a custom ClassLoader can perform on-the-fly code generation or * modification! * * <p>Every classloader has a parent classloader that is consulted before * the 'child' classloader when classes or resources should be loaded. * This is done to make sure that classes can be loaded from an hierarchy of * multiple classloaders and classloaders do not accidentially redefine * already loaded classes by classloaders higher in the hierarchy. * * <p>The grandparent of all classloaders is the bootstrap classloader, which * loads all the standard system classes as implemented by GNU Classpath. The * other special classloader is the system classloader (also called * application classloader) that loads all classes from the CLASSPATH * (<code>java.class.path</code> system property). The system classloader * is responsible for finding the application classes from the classpath, * and delegates all requests for the standard library classes to its parent * the bootstrap classloader. Most programs will load all their classes * through the system classloaders. * * <p>The bootstrap classloader in GNU Classpath is implemented as a couple of * static (native) methods on the package private class * <code>java.lang.VMClassLoader</code>, the system classloader is an * instance of <code>gnu.java.lang.SystemClassLoader</code> * (which is a subclass of <code>java.net.URLClassLoader</code>). * * <p>Users of a <code>ClassLoader</code> will normally just use the methods * <ul> *  <li> <code>loadClass()</code> to load a class.</li> *  <li> <code>getResource()</code> or <code>getResourceAsStream()</code> *       to access a resource.</li> *  <li> <code>getResources()</code> to get an Enumeration of URLs to all *       the resources provided by the classloader and its parents with the *       same name.</li> * </ul> * * <p>Subclasses should implement the methods * <ul> *  <li> <code>findClass()</code> which is called by <code>loadClass()</code> *       when the parent classloader cannot provide a named class.</li> *  <li> <code>findResource()</code> which is called by *       <code>getResource()</code> when the parent classloader cannot provide *       a named resource.</li> *  <li> <code>findResources()</code> which is called by *       <code>getResource()</code> to combine all the resources with the *       same name from the classloader and its parents.</li> *  <li> <code>findLibrary()</code> which is called by *       <code>Runtime.loadLibrary()</code> when a class defined by the *       classloader wants to load a native library.</li> * </ul> * * @author John Keiser * @author Mark Wielaard * @author Eric Blake <ebb9@email.byu.edu> * @see Class * @since 1.0 * @status still missing 1.4 functionality */public abstract class ClassLoader{  /**   * All packages defined by this classloader. It is not private in order to   * allow native code (and trusted subclasses) access to this field.   */  final Map definedPackages = new HashMap();  /**   * The classloader that is consulted before this classloader.   * If null then the parent is the bootstrap classloader.   */  private final ClassLoader parent;  /**   * This is true if this classloader was successfully initialized.   * This flag is needed to avoid a class loader attack: even if the   * security manager rejects an attempt to create a class loader, the   * malicious class could have a finalize method which proceeds to   * define classes.   */  private final boolean initialized;  /**   * System/Application classloader: defaults to an instance of   * gnu.java.lang.SystemClassLoader, unless the first invocation of   * getSystemClassLoader loads another class loader because of the   * java.system.class.loader property. The initialization of this field   * is somewhat circular - getSystemClassLoader() checks whether this   * field is null in order to bypass a security check.   */  static final ClassLoader systemClassLoader =    VMClassLoader.getSystemClassLoader();  /**   * The default protection domain, used when defining a class with a null   * paramter for the domain.   */  static final ProtectionDomain defaultProtectionDomain;  static  {    CodeSource cs = new CodeSource(null, null);    PermissionCollection perm = Policy.getPolicy().getPermissions(cs);    defaultProtectionDomain = new ProtectionDomain(cs, perm);  }  /**   * The desired assertion status of classes loaded by this loader, if not   * overridden by package or class instructions.   */  // Package visible for use by Class.  boolean defaultAssertionStatus = VMClassLoader.defaultAssertionStatus();  /**   * The command-line state of the package assertion status overrides. This   * map is never modified, so it does not need to be synchronized.   */  // Package visible for use by Class.  static final Map systemPackageAssertionStatus    = VMClassLoader.packageAssertionStatus();  /**   * The map of package assertion status overrides, or null if no package   * overrides have been specified yet. The values of the map should be   * Boolean.TRUE or Boolean.FALSE, and the unnamed package is represented   * by the null key. This map must be synchronized on this instance.   */  // Package visible for use by Class.  Map packageAssertionStatus;  /**   * The command-line state of the class assertion status overrides. This   * map is never modified, so it does not need to be synchronized.   */  // Package visible for use by Class.  static final Map systemClassAssertionStatus    = VMClassLoader.classAssertionStatus();  /**   * The map of class assertion status overrides, or null if no class   * overrides have been specified yet. The values of the map should be   * Boolean.TRUE or Boolean.FALSE. This map must be synchronized on this   * instance.   */  // Package visible for use by Class.  Map classAssertionStatus;  /**   * Create a new ClassLoader with as parent the system classloader. There   * may be a security check for <code>checkCreateClassLoader</code>.   *   * @throws SecurityException if the security check fails   */  protected ClassLoader() throws SecurityException  {    this(systemClassLoader);  }  /**   * Create a new ClassLoader with the specified parent. The parent will   * be consulted when a class or resource is requested through   * <code>loadClass()</code> or <code>getResource()</code>. Only when the   * parent classloader cannot provide the requested class or resource the   * <code>findClass()</code> or <code>findResource()</code> method   * of this classloader will be called. There may be a security check for   * <code>checkCreateClassLoader</code>.   *   * @param parent the classloader's parent, or null for the bootstrap   *        classloader   * @throws SecurityException if the security check fails   * @since 1.2   */  protected ClassLoader(ClassLoader parent)  {    // May we create a new classloader?    SecurityManager sm = System.getSecurityManager();    if (sm != null)      sm.checkCreateClassLoader();    this.parent = parent;    this.initialized = true;  }  /**   * Load a class using this ClassLoader or its parent, without resolving   * it. Calls <code>loadClass(name, false)</code>.   *   * <p>Subclasses should not override this method but should override   * <code>findClass()</code> which is called by this method.   *   * @param name the name of the class relative to this ClassLoader   * @return the loaded class   * @throws ClassNotFoundException if the class cannot be found   */  public Class loadClass(String name) throws ClassNotFoundException  {    return loadClass(name, false);  }  /**   * Load a class using this ClassLoader or its parent, possibly resolving   * it as well using <code>resolveClass()</code>. It first tries to find   * out if the class has already been loaded through this classloader by   * calling <code>findLoadedClass()</code>. Then it calls   * <code>loadClass()</code> on the parent classloader (or when there is   * no parent it uses the VM bootclassloader)</code>). If the class is still   * not loaded it tries to create a new class by calling   * <code>findClass()</code>. Finally when <code>resolve</code> is   * <code>true</code> it also calls <code>resolveClass()</code> on the   * newly loaded class.   *   * <p>Subclasses should not override this method but should override   * <code>findClass()</code> which is called by this method.   *   * @param name the fully qualified name of the class to load   * @param resolve whether or not to resolve the class   * @return the loaded class   * @throws ClassNotFoundException if the class cannot be found   */  protected synchronized Class loadClass(String name, boolean resolve)    throws ClassNotFoundException  {    // Have we already loaded this class?    Class c = findLoadedClass(name);    if (c != null)      return c;    // Can the class be loaded by a parent?    try      {	if (parent == null)	  {	    c = VMClassLoader.loadClass(name, resolve);	    if (c != null)	      return c;	  }	else	  {	    return parent.loadClass(name, resolve);	  }      }    catch (ClassNotFoundException e)      {      }    // Still not found, we have to do it ourself.    c = findClass(name);    if (resolve)      resolveClass(c);    return c;  }  /**   * Called for every class name that is needed but has not yet been   * defined by this classloader or one of its parents. It is called by   * <code>loadClass()</code> after both <code>findLoadedClass()</code> and   * <code>parent.loadClass()</code> couldn't provide the requested class.   *   * <p>The default implementation throws a   * <code>ClassNotFoundException</code>. Subclasses should override this

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品一区二区三区精华液| 一区二区三区四区视频精品免费| 成人在线视频首页| 亚洲大片一区二区三区| 国产精品不卡一区二区三区| 日韩精品一区二区三区中文精品| 国产成人精品综合在线观看 | 国产精品一区二区无线| 夜夜嗨av一区二区三区中文字幕| 国产欧美综合在线| 欧美一卡2卡三卡4卡5免费| 色偷偷久久一区二区三区| 国产传媒久久文化传媒| 老汉av免费一区二区三区| 中文无字幕一区二区三区| 精品日韩欧美一区二区| 91精品国产综合久久香蕉麻豆| 91麻豆福利精品推荐| 成人一区二区在线观看| 国产精品一区二区91| 极品美女销魂一区二区三区| 日本sm残虐另类| 日韩电影免费在线| 亚洲私人影院在线观看| 亚洲欧美日韩中文字幕一区二区三区| 国产日韩欧美麻豆| 欧美激情在线一区二区三区| 国产欧美日韩在线视频| 中文成人av在线| 日韩理论片网站| 亚洲国产精品久久人人爱| 亚洲成人7777| 久久国内精品自在自线400部| 免费av网站大全久久| 蜜桃精品视频在线观看| 久久精品国产一区二区三区免费看| 蜜臀精品久久久久久蜜臀| 精彩视频一区二区| 国产一区二区免费视频| 成人激情动漫在线观看| 91麻豆福利精品推荐| 欧美精品久久99久久在免费线| 91精品在线一区二区| 91精品国产综合久久久久久| 日韩精品影音先锋| 国产精品久久久久三级| 亚洲第一成人在线| 日本亚洲电影天堂| 国产成人综合在线观看| 欧美视频三区在线播放| 精品99999| 中文字幕精品—区二区四季| 亚洲一区二区av电影| 久久精品免费看| 成人午夜碰碰视频| 国产一区二区久久| 日本韩国精品一区二区在线观看| 欧美日韩精品专区| 国产精品免费视频一区| 免费一级片91| av资源网一区| 欧美日韩一区二区在线视频| 国产无一区二区| 午夜视频一区二区三区| 成人性生交大片免费看视频在线| 欧美色图天堂网| 国产精品色哟哟| 美女视频第一区二区三区免费观看网站| 亚洲伊人色欲综合网| 成人午夜激情影院| 日韩欧美另类在线| 日韩激情一区二区| 91欧美一区二区| 国产精品三级久久久久三级| 蜜乳av一区二区三区| 欧美色精品在线视频| 2021国产精品久久精品| 视频一区二区欧美| 欧美日韩综合色| 一区二区三区中文在线| 99精品国产一区二区三区不卡| 中文字幕中文字幕一区二区| 波多野结衣中文一区| 中文字幕一区二区三区在线不卡 | 99热国产精品| 亚洲天堂网中文字| 一本一道综合狠狠老| 一区二区三区日韩欧美| 欧美午夜一区二区三区 | 久久精品国产亚洲a| 欧美一卡二卡在线| 国产精品一区二区男女羞羞无遮挡 | 国产精品视频一二三| 91社区在线播放| 亚洲成人免费在线| 日韩精品在线一区| 成人小视频免费在线观看| 樱桃国产成人精品视频| 91精品国产色综合久久不卡电影 | 91黄色小视频| 日韩高清电影一区| 国产香蕉久久精品综合网| 成人激情电影免费在线观看| 亚洲综合丁香婷婷六月香| 日韩一区二区精品| 懂色av中文一区二区三区| 亚洲视频一区二区在线| 4438x亚洲最大成人网| 国产成人免费在线观看不卡| 亚洲精品视频观看| 日韩精品一区二区三区在线观看 | 国产精品久久久久久久浪潮网站| 日本高清不卡一区| 久久国产视频网| 最新国产成人在线观看| 欧美美女视频在线观看| 粉嫩蜜臀av国产精品网站| 免费高清在线视频一区·| 欧美激情综合五月色丁香小说| 欧美图区在线视频| 国产成人激情av| 日韩中文字幕区一区有砖一区 | 北条麻妃一区二区三区| 国产精品久久久久永久免费观看| 91免费看`日韩一区二区| 免费观看91视频大全| 1024成人网| 欧美一级在线视频| 色天使色偷偷av一区二区| 精品影院一区二区久久久| 亚洲影视资源网| 国产精品萝li| 欧美刺激午夜性久久久久久久 | 色婷婷激情一区二区三区| 国产真实乱偷精品视频免| 亚洲精品欧美在线| 久久久久久久久久久黄色| 欧美日韩成人综合在线一区二区| 丁香网亚洲国际| 韩国成人福利片在线播放| 日本vs亚洲vs韩国一区三区二区 | 精品一区二区日韩| 日韩专区欧美专区| 亚洲成人一区二区在线观看| 最新不卡av在线| 国产欧美1区2区3区| 日韩一区二区电影网| 欧美日韩精品一区二区三区| 色婷婷综合中文久久一本| 成人高清视频在线观看| 国产精品69毛片高清亚洲| 国产麻豆日韩欧美久久| 美女mm1313爽爽久久久蜜臀| 日韩高清一级片| 奇米四色…亚洲| 美女精品自拍一二三四| 日韩高清国产一区在线| 日韩成人午夜电影| 天天做天天摸天天爽国产一区 | 亚洲色图欧洲色图婷婷| 中文字幕一区二区三区四区 | 欧美综合一区二区| 在线亚洲高清视频| 在线国产电影不卡| 欧美日韩一区二区在线观看视频 | 国内精品嫩模私拍在线| 蜜臀av国产精品久久久久| 美女网站色91| 丰满少妇在线播放bd日韩电影| 国产精品一区久久久久| 国产99久久久精品| 色综合色综合色综合| 欧美精品欧美精品系列| 精品久久一区二区三区| 国产女同性恋一区二区| 日韩美女视频一区二区| 婷婷久久综合九色国产成人| 老司机免费视频一区二区| 风间由美中文字幕在线看视频国产欧美| 99久久精品国产精品久久| 欧美日精品一区视频| 精品剧情在线观看| 亚洲欧美日韩中文字幕一区二区三区 | 国产精品欧美极品| 亚洲成人中文在线| 国产成人精品亚洲日本在线桃色 | 91精品久久久久久蜜臀| 国产色婷婷亚洲99精品小说| 亚洲美女屁股眼交| 男女男精品网站| eeuss影院一区二区三区| 在线观看亚洲a| 精品国产一区二区精华| 国产亚洲视频系列| 日韩精品一二三| 国产成人精品一区二区三区网站观看| 丝袜亚洲另类欧美综合| 丁香婷婷综合激情五月色| 欧美曰成人黄网| 日韩一级高清毛片|