Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337100 - Simplify resource registration in ResourceManagerFactory
Summary: Simplify resource registration in ResourceManagerFactory
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.4   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: 1.4 M6   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 335811
  Show dependency tree
 
Reported: 2011-02-14 06:30 EST by Ralf Sternberg CLA
Modified: 2011-03-07 17:48 EST (History)
1 user (show)

See Also:


Attachments
Patch to outline the idea (11.14 KB, patch)
2011-02-14 06:33 EST, Ralf Sternberg CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.