Issue Details (XML | Word | Printable)

Key: NUCCORE-1071
Type: Improvement Improvement
Status: Open Open
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: 18/Feb/14 09:23 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 ]