Issue Details (XML | Word | Printable)

Key: NUCCORE-1071
Type: Improvement Improvement
Status: Closed Closed
Resolution: Won't Fix
Priority: Minor Minor
Assignee: Unassigned
Reporter: Peter Kriens
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus Core

OSGiPluginRegistry does not understand OSGi

Created: 03/Sep/13 06:08 PM   Updated: 28/Sep/15 03:57 PM   Resolved: 16/Sep/15 10:07 AM
Component/s: OSGi
Affects Version/s: None
Fix Version/s: None

Environment: OSGi

 Description  « Hide
The OSGi Plugin Registry assumes that the bundle is started, it calls FrameworkUtil(this.getClass) and then expects that there is a BundleContext. However, a BundleContext ONLY exists when a bundle is started. Extension points should also only be used when the providing bundle is started.

Eclipse has unfortunately screwed up this idea because they were afraid that starting bundles would be too expensive. So we got a mess in Eclipse with activation policy etc. However, the actual OSGi way is to start all bundles you want and ONLY use resources from started bundles.

I can help write a proper version based on the BundleTracker. However, this will mean that some of the extension points will appear/disappear.

Andy Jefferson added a comment - 14/Jan/14 11:06 AM
If you want to contribute a version based on "BundleTracker" please attach it to this issue; note that we use GitHub now. Any questions just add them to this issue

Andy Jefferson made changes - 18/Feb/14 09:23 AM
Field Original Value New Value
Issue Type Bug [ 1 ] Improvement [ 4 ]
Priority Major [ 3 ] Minor [ 4 ]
Component/s OSGi [ 10366 ]
Andy Jefferson added a comment - 16/Sep/15 10:07 AM
Since nobody is providing time for this I see no point in it sitting here.
The codebase is open, and people can contribute to it. All contributions are welcome.
Should anyone find time then post here and I'll reopen this

Andy Jefferson made changes - 16/Sep/15 10:07 AM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Won't Fix [ 2 ]
Andy Jefferson made changes - 28/Sep/15 03:57 PM
Status Resolved [ 5 ] Closed [ 6 ]