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

Bug 337100

Summary: Simplify resource registration in ResourceManagerFactory
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: gunnar
Version: 1.4   
Target Milestone: 1.4 M6   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 335811    
Attachments:
Description Flags
Patch to outline the idea none

Description Ralf Sternberg CLA 2011-02-14 06:30:52 EST
Currently, the ResourceManagerFactory wraps the ResourceManagerImpl to be able to register the path of every resource with the HttpService. These paths are all subpaths of "/rwt-resource", e.g. "/rwt-resource/qx/core". It seems to be sufficient to register the resource path "rwt-resource" once to make every subfolder available to the HttpService.
Comment 1 Ralf Sternberg CLA 2011-02-14 06:33:11 EST
Created attachment 188888 [details]
Patch to outline the idea

The suggested change needs some more refactoring, I just attach this patch as a sketch for review.
Comment 2 Ralf Sternberg CLA 2011-03-07 17:48:42 EST
United registration of servlets and resources in HttpServiceTracker and eliminated the ResourceManagerWrapper in ResourceManagerFactory.
I made sure that the performance of resource delivery is not affected.
Changes are in CVS HEAD.