Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to autostart org.eclipse.gemini.blueprint.extender in a feature based eclipse rcp application?

I have an eclipse rcp application that uses gemini blueprint. It has two features and hence a feature based product. Some of our bundles depend on service that where created by the blueprint extender. But actually the blueprint extender is only resolved on startup and not activated. Today we work around this by executing code in bundle activators, that checks if the org.eclipse.gemini.blueprint.extender bundle was started and if not it gets started.

Adding the bundle to the .product with a start level of 3 and autoStart=true has no effect. I think this is because our product is feature based. Is this correct? What is the best way to autostart the extender?

like image 501
gregor Avatar asked May 17 '13 08:05

gregor


People also ask

What is RCP in Eclipse?

While the Eclipse platform is designed to serve as an open tools platform, it is architected so that its components could be used to build just about any client application. The minimal set of plug-ins needed to build a rich client application is collectively known as the Rich Client Platform.

What is RCP product?

The Rich Client Platform (RCP) is an exciting new way to build Java applications that can compete with native applications on any platform.


1 Answers

You need to edit configuration/config.ini file and add the bundle you want started to the osgi.bundles property. For example:

osgi.bundles=<existing entries>, org.eclipse.gemini.blueprint.extender@3:start

like image 59
Neil Bartlett Avatar answered Oct 19 '22 12:10

Neil Bartlett