Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-dev] Classloading enhancements

DJ,

This is a super cool feature!  Do you have any metrics on the performance
improvement?  I suspect it is rather large.

jkca



                                                                                                                                                   
                      DJ_Houghton@xxxxxx                                                                                                           
                      .com                       To:      eclipse-dev@xxxxxxxxxxx                                                                  
                      Sent by:                   cc:                                                                                               
                      eclipse-dev-admin@         Subject: [eclipse-dev] Classloading enhancements                                                  
                      eclipse.org                                                                                                                  
                                                                                                                                                   
                                                                                                                                                   
                      12/10/2002 03:36                                                                                                             
                      PM                                                                                                                           
                      Please respond to                                                                                                            
                      eclipse-dev                                                                                                                  
                                                                                                                                                   
                                                                                                                                                   





In today's integration build some new class loading enhancements were
released.

What does it do?
------------------------
Similar to the classloader.properties file which was released for 2.0.2,
plug-ins are now able to specify the package prefixes for the code which
their plug-in contributes.


What do I have to do?
--------------------------------
Add the <packages prefixes=".."...> lines to your plugin.xml file for each
library you declare in your plug-in. For instance, the Xerces plug-in
declares 2 libraries and its plugin.xml file will look like:

  <runtime>
    <library name="xmlParserAPIs.jar">
      <export name="*"/>
      <packages prefixes="javax.xml,org.w3c.dom,org.xml.sax"/>
    </library>
    <library name="xercesImpl.jar">
      <export name="*"/>
      <packages prefixes="org.apache,org.w3c.dom"/>
    </library>
  </runtime>


How do I know what prefixes to use?
-----------------------------------------------------
Look at the attached classloader.properties file for hints for most of the
plug-ins which are included in the SDK.


It doesn't work, what do I do?
------------------------------------------
See the "Troubleshooting" section of the readme file to enable your
plug-in's code and enter a bugzilla bug report against Platform/Core.

Attached Files:
----------------------

classloader.properties for hints on package prefixes
(See attached file: classloader.properties)

readme file
(from
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-core-home/docs/package-prefixes/prefixes.html
)

(See attached file: prefixes.html)








Back to the top