Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351290 - Remove servicehandler.xml
Summary: Remove servicehandler.xml
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.5 M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-06 05:28 EDT by Rüdiger Herrmann CLA
Modified: 2011-07-15 05:34 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rüdiger Herrmann CLA 2011-07-06 05:28:53 EDT
A mechanism inherited from W4Toolkit is that the application programmer can place files called servicehandler.xml in the root (empty) package. At startup the classpath is scanned for these files and the contained service-handler registrations are added to the IServiceManager.
This mechanism doesn't fit into todays RWT for several reasons:
* it violates the application scope as there is no way to tell which servicehandler.xml should be used for which application
* it does not work in OSGi as there is no one single class loader
* with the 'Configurator' an alternative way to register service-handlers exist
I suggest to entirely remove this mechanism. Any objections?
Comment 1 Rüdiger Herrmann CLA 2011-07-15 05:34:48 EDT
Removed all code that was responsible for loading the servicehandler.xml. Added some more tests to ServiceManager_Test.
Changes are in CVS HEAD.