Twitter github

Posts Tagged with “osgi”

Extension Registry is just another OSGi Service

After working with a colleague today regarding a problem with the extension registry, I saw a lack of domain knowledge on my colleague’s part. He thought the extension registry was some mythical beast that can be summoned via an incantation of Platform.getExtensionRegistry()… that thought is wrong. The Extension Registry is just another OSGi service (read about it in Neil Bartlett’s fantastic article). What this means is that you can simply interact with it like any other OSGi service…


// some simple snippets...
ServiceTracker tracker = new ServiceTracker(context,IExtensionRegistry.class.getName(), null);
tracker.open();
IExtensionRegistry registry =(IExtensionRegistry) tracker.getService();

There, no more Platform.getExtensionRegistry()… now it’s back to working off the 2 pounds gained being on the EclipseCon diet.

Sprint, OSGi, eRCP

Forgive me for not posting this bit of news with a direct article link, but I recalled this bit of information from my memory by reading an EclipseCon 2007 talk abstract. At the last Sprint Developer’s Conference, there was mention of Sprint moving to OSGi and possibly using eRCP in their next generation set of devices. In my opinion, this is huge news and just goes to show how OSGi (and Eclipse) is being adopted throughout industry.

If anyone has a direct link to an article, that would be great!