Community
Participate
Working Groups
I really appreciate the Runtime refactoring effort and the ability of using cool pieces of Eclipse from regular Java apps. But from the API it is impossible to tell whether it would work for an ordinary Java app, outside the OSGi container. The only way of being sure is to try and test it. So I ask that for those API the intended use includes calling it from plain Java apps, the spec explicitly spell that out. Otherwise clients might end up relying on an implementation detail, and be broken later on.
I agree with that. Marking for 3.2 so we don't forget about this issue and discuss it.
yes, we need to think about how to doc this.
I plan to add the following comments to the Javadoc of APIs in equinox.common and equinox.registry plugins (those are the only two plugins expected to provide funcitonality without OSGi): This class/interface utilizes functionality provided by OSGi and can't be used without OSGi present. or This class can be used without OSGi. Due to the large volume of changes, please comment soon if you'd like to modify the text to be added to Javadocs.
Created attachment 39776 [details] Patch adds Javadoc explicitly stating if OSGi presence is required
Created attachment 40641 [details] Patch adds Javadoc explicitly stating if OSGi presence is required Updated wording of the Javadoc
Updating milestone for unfinished doc work
Patch for the Javadoc is applied.
did someone review this? This is API stuff (not changes but clarifications) but still should be reviewed for long term impacts etc.
Created attachment 40879 [details] Patch to be applied against the HEAD The patch takes a different approach and groups APIs into two categories: a) APIs that don't require OSGi running b) APIs that expect OSGi to be running The APIs in (a) get this line in the Javadoc: This class[interface] can be used without OSGi running. and APIs from (b) don't get anything written in the Javadoc about OSGi requirements. Note that APIs from group (a) might still need to consume classes fdrom OSGi. At present, the collection of OSGi classes used by the equinox.registry and equinox.common APIs from group (a) can be found in the plugin org.eclipse.equinox.supplement.
This looks good to me.
Thanks, DJ! Patch applied.