Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 351290

Summary: Remove servicehandler.xml
Product: [RT] RAP Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: 1.5 M1   
Hardware: All   
OS: All   
Whiteboard:

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.