隨筆 - 117  文章 - 72  trackbacks - 0

          聲明:原創(chuàng)作品(標(biāo)有[原]字樣)轉(zhuǎn)載時(shí)請注明出處,謝謝。

          常用鏈接

          常用設(shè)置
          常用軟件
          常用命令
           

          訂閱

          訂閱

          留言簿(7)

          隨筆分類(130)

          隨筆檔案(123)

          搜索

          •  

          積分與排名

          • 積分 - 155778
          • 排名 - 390

          最新評(píng)論

          Endorsed Standards Override Mechanism

          Introduction

          An endorsed standard is a JavaTM API defined through a standards process other than the Java Community ProcessSM (JCPSM). Because endorsed standards are defined outside the JCP, it is anticipated that such standards may be revised between releases of the Java platform. In order to take advantage of new revisions to endorsed standards, developers and software vendors may use the Endorsed Standards Override Mechanism to provide newer versions of an endorsed standard than those included in the Java platform as released by Sun Microsystems.

          Endorsed Standards Classes Deployment

          Classes implementing newer versions of endorsed standards should be placed in JAR files. The system property java.endorsed.dirs specifies one or more directories that the Java runtime environment will search for such JAR files. If more than one directory path is specified by java.endorsed.dirs, they must be separated by File.pathSeparatorChar. If no value is set for java.endorsed.dirs, then Sun Microsystem's implementation of the Java platform looks for JAR files in a default standard location:
          <java-home>\lib\endorsed          [Microsoft Windows]

          <java-home>/lib/endorsed [Solaris or Linux]

          Here <java-home> refers to the directory where the runtime software is installed (which is the top-level directory of the J2SE Runtime Environment or the jre directory in the JDK).

          The J2SE runtime environment will use classes in such JAR files to override the corresponding classes provided in the Java platform as shipped by Sun.

          Endorsed Standards APIs

          The endorsed standards for J2SETM 5.0 constitute all classes and interfaces that are defined in the packages listed below. Classes and interfaces defined in sub-packages of listed packages are not endorsed standards unless those sub-packages are themselves listed. The Endorsed Standards Override Mechanism may be used to override the J2SE platform packages in the list below, and these packages may be overridden only by versions of the endorsed standard that are newer than that provided by the Java platform as released by Sun. No other packages from the J2SE platform API specification may be overridden.
          javax.rmi.CORBA 

          org.omg.CORBA

          org.omg.CORBA.DynAnyPackage

          org.omg.CORBA.ORBPackage

          org.omg.CORBA.portable

          org.omg.CORBA.TypeCodePackage

          org.omg.CORBA_2_3

          org.omg.CORBA_2_3.portable

          org.omg.CosNaming

          org.omg.CosNaming.NamingContextExtPackage

          org.omg.CosNaming.NamingContextPackage

          org.omg.Dynamic

          org.omg.DynamicAny

          org.omg.DynamicAny.DynAnyFactoryPackage

          org.omg.DynamicAny.DynAnyPackage

          org.omg.IOP

          org.omg.IOP.CodecFactoryPackage

          org.omg.IOP.CodecPackage

          org.omg.Messaging

          org.omg.PortableInterceptor

          org.omg.PortableInterceptor.ORBInitInfoPackage

          org.omg.PortableServer

          org.omg.PortableServer.CurrentPackage

          org.omg.PortableServer.POAManagerPackage

          org.omg.PortableServer.POAPackage

          org.omg.PortableServer.portable

          org.omg.PortableServer.ServantLocatorPackage

          org.omg.SendingContext

          org.omg.stub.java.rmi

          org.w3c.dom

          org.xml.sax

          org.xml.sax.ext

          org.xml.sax.helpers

          In addition to the packages listed above, which are part of the J2SE specification, users of Sun's J2SE Reference Implementation may be allowed to use the Endorsed Standards Override Mechanism to override implementation-specific classes such as the org.w3c.dom sub-packages delivered in Sun's Reference Implementation. See the corresponding license for details.



          其實(shí)就是把新的jar形式的API放到$JDK_HOME/jre/lib/endorsed目錄中,以達(dá)到覆蓋JDK中原有舊版的API的目的。


          來源:http://java.sun.com/j2se/1.5.0/docs/guide/standards/
          posted on 2009-05-14 23:32 天堂露珠 閱讀(323) 評(píng)論(0)  編輯  收藏 所屬分類: Java
          主站蜘蛛池模板: 巢湖市| 西乌| 舟山市| 黄冈市| 蒙城县| 老河口市| 神木县| 安多县| 苗栗市| 乐都县| 甘南县| 泰顺县| 修水县| 弋阳县| 高邮市| 和林格尔县| 蓝田县| 托克逊县| 无锡市| 夏河县| 慈利县| 分宜县| 滦平县| 咸丰县| 焉耆| 通山县| 阜城县| 桓台县| 道孚县| 沧源| 东宁县| 古丈县| 竹山县| 平安县| 阿克苏市| 常熟市| 军事| 绵阳市| 天峨县| 南昌市| 浙江省|