IntelliJ IDEA 2017.2 Help

Framework Definitions

This feature is supported in the Ultimate edition only.

The OSGi specification has a number of implementations. Each implementation has a different set of base bundles, different ways to start them, and require different layout for the folder containing the binary bundles and their sources.

To cope with this diversity, Osmorc uses the notion of framework integrators and framework instances.

A framework integrator is used to integrate an instance of a specific framework implementation. Osmorc contains framework integrators for Eclipse Equinox, Knopflerfish, and Apache Felix. An extension point for framework integrators is also available. So integrators for framework implementations that are not directly supported by Osmorc can be developed by third parties.

A framework instance is a concrete installation of a framework implementation. As framework instances are normally not installed in the folder structure of a project, a framework instance with a specific name can be installed in different locations under different installations of IntelliJ IDEA. A project only knows the name of the framework instance it uses. Osmorc creates the connection to the framework instance if it exists as soon as the project is opened.

The framework definitions known by the currently used IntelliJ IDEA installation are listed on the OSGi page of the Settings dialog box.

Framework definitions are added, edited, and removed in the Framework Definitions tab of the OSGi page.

To define a new framework instance

  1. Open the Settings dialog box, click the Osmorc node, and switch to the Framework Definitions tab.
  2. Click the Add button.
  3. In the Create New Framework Instance dialog box that opens select the type of framework integrator, specify a unique name and the base folder for the framework instance.
Last modified: 29 November 2017

See Also