| Summary: | Remove Spring dependencies from the GW package artifact | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] Gemini.Web | Reporter: | Violeta Georgieva <milesg78> | ||||
| Component: | unknown | Assignee: | Violeta Georgieva <milesg78> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | glyn.normington | ||||
| Version: | 2.0.0.RELEASE | ||||||
| Target Milestone: | 2.1.0.M01 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Violeta Georgieva
org.eclipse.gemini.web.tomcat.internal.loading.BundleWebappClassLoader depends on org.springframework.osgi.util.BundleDelegatingClassLoader. Because of this dependency additional 5 bundles are needed for successful resolution. If we remove this dependency, we can drop GW dependency on Spring and thus reduce the package size of the GW distribution. Created attachment 205796 [details]
Patch proposal
It appears that Eclipse Gemini Blueprint provides bundle delegating classloader functionality and we can use it.
I made a patch. Could you please review it?
With that patch we can remove the following bundles from GW distro:
- org.springframework.aop
- org.springframework.beans
- org.springframework.context
- org.springframework.core
- com.springsource.org.apache.commons.logging
- com.springsource.org.aopalliance
Comment on attachment 205796 [details]
Patch proposal
The copyright statements of BundleDelegatingClassLoader.java and BundleDelegatingClassLoaderTest.java should have their date ranges updated to end in 2011.
Also, it is the normal Virgo and GW convention to name testcases ...Tests.java although I notice that this hasn't been adhered to uniformly.
Please remember to mark the relevant CQs, such as 4336, as no longer needed if necessary. (I'll send email to Wayne on this topic and copy you.)
(In reply to comment #3) > Comment on attachment 205796 [details] > Patch proposal > The copyright statements of BundleDelegatingClassLoader.java and > BundleDelegatingClassLoaderTest.java should have their date ranges updated to > end in 2011. I corrected them. > Also, it is the normal Virgo and GW convention to name testcases ...Tests.java > although I notice that this hasn't been adhered to uniformly. I corrected the test's name for this particular testcase, the rest will be covered with: Bug 361836 > Please remember to mark the relevant CQs, such as 4336, as no longer needed if > necessary. (I'll send email to Wayne on this topic and copy you.) I will do that. The change is tested, committed and pushed. Commit Id: cf436ee379ca60e8ed8326f882e8e0f7db0b14b0 Thanks |