日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

The Class Loader Hierarchy--转载

發布時間:2025/4/5 编程问答 33 豆豆
生活随笔 收集整理的這篇文章主要介紹了 The Class Loader Hierarchy--转载 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

Class loaders in the Application Server runtime follow a delegation hierarchy that is illustrated in the following figure and fully described inTable 2–1.

Figure 2–1 Class Loader Runtime Hierarchy


?

The following table describes the class loaders in the Application Server.

Table 2–1 Sun Java System Application Server Class Loaders

Class Loader?

Description?

Bootstrap

The Bootstrap class loader loads the basic runtime classes provided by the JVM, plus any classes from JAR files present in the system extensions directory. It is parent to the System class loader. To add JAR files to the system extensions, directory, see?Using the Java Optional Package Mechanism.

System

The System class loader loads Application Server launch classes. It is parent to the Shared Chain class loader. It is created based on the?system-classpath?attribute of the?java-config?element in the?domain.xml?file. In the Admin Console, select the Application Server component, the JVM Settings tab, and the Path Settings tab, then edit the System Classpath field. See?Using the System Class Loader?and?java-config?in?Sun Java System Application Server Platform Edition 9 Administration Reference.

Shared Chain?

The Shared Chain class loader loads most of the core Application Server classes. It is parent to the MBean class loader and the Common class loader. Classes specified by the?classpath-prefix?and?classpath-suffixattributes of the?java-config?element in the?domain.xml?file are added to this class loader. In the Admin Console, select the Application Server component, the JVM Settings tab, and the Path Settings tab, then edit the Classpath Prefix or Classpath Suffix field.

The environment classpath is included if?env-classpath-ignored="false"?is set in the?java-configelement.

Use?classpath-prefix?to place libraries ahead of Application Server implementation classes in the shared chain. The?classpath-prefix?is ideal for placing development and diagnostic patches. Use?classpath-suffix?to place libraries after implementation classes in the shared chain.

MBean

The MBean class loader loads the MBean implementation classes. See?MBean Class Loading.

Common

The Common class loader loads classes in the?domain-dir/lib/classes?directory, followed by JAR files in thedomain-dir/lib?directory. It is parent to the Connector class loader. No special classpath settings are required. The existence of these directories is optional; if they do not exist, the Common class loader is not created. See?Using the Common Class Loader.

Connector

The Connector class loader is a single class loader instance that loads individually deployed connector modules, which are shared across all applications. It is parent to the LifeCycleModule class loader and the Application class loader.?

LifeCycleModule

The LifeCycleModule class loader is created once per lifecycle module. Each?lifecycle-module?element’sclasspath?attribute is used to construct its own class loader. For more information on lifecycle modules, seeChapter?13, Developing Lifecycle Listeners.

Application

The Application class loader loads the classes in a specific enabled individually deployed module or Java EE application. One instance of this class loader is present in each class loader universe; see?Class Loader Universes. The Application class loader is created with a list of URLs that point to the locations of the classes it needs to load. It is parent to the Web class loader.

The Application class loader loads classes in the following order:?

  • Classes specified by the?library-directory?element in the?application.xml?deployment descriptor or the?–-libraries?option during deployment; see?Application-Specific Class Loading

  • Classes specified by the application's or module's?location?attribute in the?domain.xml?file, determined during deployment

  • Classes in the classpaths of the application's sub-modules

  • Classes in the application's or module's stubs directory

  • The?location?attribute points to?domain-dir/applications/j2ee-apps/app-name?or?domain-dir/applications/j2ee-modules/module-name.

    The stubs directory is?domain-dir/generated/ejb/j2ee-apps/app-name?or?domain-dir/generated/ejb/j2ee-modules/module-name.

    Web

    The Web class loader loads the servlets and other classes in a specific enabled web module or a Java EE application that contains a web module. This class loader is present in each class loader universe that contains a web module; see?Class Loader Universes. One instance is created for each web module. The Web class loader is created with a list of URLs that point to the locations of the classes it needs to load. The classes it loads are in?WEB-INF/classes?or?WEB-INF/lib/*.jar. It is parent to the JSP Engine class loader.

    JSP Engine

    The JSP Engine class loader loads compiled JSP classes of enabled JSP files. This class loader is present in each class loader universe that contains a JSP page; see?Class Loader Universes. The JSP Engine class loader is created with a list of URLs that point to the locations of the classes it needs to load.

    ?

    Note that this is not a Java inheritance hierarchy, but a delegation hierarchy. In the delegation design, a class loader delegates classloading to its parent before attempting to load a class itself. A class loader parent can be either the System class loader or another custom class loader. If the parent class loader cannot load a class, the class loader attempts to load the class itself. In effect, a class loader is responsible for loading only the classes not available to the parent. Classes loaded by a class loader higher in the hierarchy cannot refer to classes available lower in the hierarchy.

    The Java Servlet specification recommends that the Web class loader look in the local class loader before delegating to its parent. You can make the Web class loader follow the delegation inversion model in the Servlet specification by setting?delegate="false"?in the?class-loader?element of the?sun-web.xml?file. It is safe to do this only for a web module that does not interact with any other modules. For details, see?class-loader?in?Sun Java System Application Server Platform Edition 9 Application Deployment Guide.

    The default value is?delegate="true", which causes the Web class loader to delegate in the same manner as the other class loaders. You must use?delegate="true"?for a web application that accesses EJB components or that acts as a web service client or endpoint. For details about?sun-web.xml, see?The sun-web.xml File?in?Sun Java System Application Server Platform Edition 9 Application Deployment Guide.

    https://docs.oracle.com/cd/E19501-01/819-3659/beadf/index.html

    轉載于:https://www.cnblogs.com/davidwang456/p/4185120.html

    《新程序員》:云原生和全面數字化實踐50位技術專家共同創作,文字、視頻、音頻交互閱讀

    總結

    以上是生活随笔為你收集整理的The Class Loader Hierarchy--转载的全部內容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。

    主站蜘蛛池模板: 香蕉久久夜色 | 在线观看黄色网页 | 麻豆传媒在线看 | av一区二区三区在线观看 | 亚洲一区免费在线观看 | 精品在线不卡 | 天天操操夜夜操操 | 亚洲熟女www一区二区三区 | 潘金莲三级80分钟 | 日批免费网站 | 加勒比视频在线观看 | 成人av软件| 色乱码一区二区三区在线男奴 | 超碰色偷偷 | 午夜视频在线观看免费视频 | 一级特黄a大片免费 | 熊猫成人网 | 免费看黄色漫画 | 奇米综合网| 草一色| h片在线免费观看 | 人操人视频 | 久久精品日韩 | 国产精品久久久久毛片大屁完整版 | 40一50一60老女人毛片 | 在线播放黄色网址 | 日本加勒比在线 | 无码国产69精品久久久久网站 | 日韩一级免费视频 | 丰满少妇高潮在线观看 | 国产一区二区在线电影 | 麻豆影视免费观看 | 国产一级18片视频 | 无码国产精品一区二区色情男同 | 另类少妇人与禽zozz0性伦 | 伊人久久五月天 | 中文字幕视频在线 | 森泽佳奈作品在线观看 | 日韩v片 | aa一级片| 中文字幕精品无码亚 | 99国产精品久久久久久久成人 | 99午夜视频 | 黑料视频在线 | 精品美女一区二区 | 国产爆乳无码一区二区麻豆 | 性猛交xxxx乱大交孕妇2十 | h在线免费观看 | 国产精品久久久久久人妻精品动漫 | 日韩欧美亚洲视频 | 深爱婷婷网 | 五月婷婷中文字幕 | 国产精品久免费的黄网站 | 中文字幕精品在线 | 成人国产一区二区 | 老司机成人免费视频 | 国产精品久久久久久99 | 精品国产欧美一区二区三区成人 | 中文字幕免费视频观看 | 武侠古典av | 欧美国产精品久久 | 国产精品久久久久久免费播放 | 看片网站在线观看 | 欧美性生活精品 | 黄色三级三级三级三级 | 男人天堂视频在线观看 | 日本不卡高清视频 | 免费网站在线观看视频 | 日本高清不卡视频 | 日韩视频a| 韩国伦理在线 | 打屁股黄文 | 免费日韩 | 青青国产在线观看 | 狠狠躁狠狠躁视频专区 | 国产精品人人人人 | av不卡一区二区三区 | 潘金莲裸体一级淫片视频 | 国产激情在线看 | 天堂网在线播放 | 在线免费看黄色 | 人人爱人人草 | 污黄视频在线观看 | 天天干天天干天天 | av官网在线观看 | 女人喷潮完整视频 | 中文字幕精品久久久久人妻红杏1 | 一本色道久久亚洲综合精品蜜桃 | 有码一区二区三区 | 日本黄色动态图 | 福利二区| 成人天堂av| 国产精品国产三级国产普通话对白 | 亚洲午夜精品视频 | 天天插天天干 | 午夜亚洲AV永久无码精品蜜芽 | 欧美第五页 | 麻豆成人91精品二区三区 | 777久久 |