public class EclipseIniLauncher extends Object
Given a directory containing osgi jars, this class verifies that the core bundles are available, and provides an API for instantiating the OSGi runtime and accessing its BundleContext
.
Modifier and Type | Class and Description |
---|---|
class |
EclipseIniLauncher.Running
Represents a running instance of the equinox OSGi container.
|
Constructor and Description |
---|
EclipseIniLauncher(File installationRoot)
Wraps a directory of jars in the launcher API, and ensures the the directory contains the plugins required to run a barebones equinox instance.
|
Modifier and Type | Method and Description |
---|---|
EclipseIniLauncher.Running |
open()
Opens the eclipse runtime, and returns an instance of
EclipseIniLauncher.Running which allows access to the underlying BundleContext . |
void |
run()
Runs the equinox launcher (calls
open() and immediately closes it). |
public EclipseIniLauncher(File installationRoot) throws FileNotFoundException, IOException
Wraps a directory of jars in the launcher API, and ensures the the directory contains the plugins required to run a barebones equinox instance.
FileNotFoundException
IOException
public EclipseIniLauncher.Running open() throws Exception
Opens the eclipse runtime, and returns an instance of EclipseIniLauncher.Running
which allows access to the underlying BundleContext
.
Exception