Skip to main content
Jump to: navigation, search

Embedding Equinox

(Redirected from Embedding)

Equinox supposed the standard SPI mechanism to embed the framework in a larger application. You put the framework jar in your classpath, and proceed as follows:

      // Obtain a framework factory.
       ServiceLoader<FrameworkFactory> loader = ServiceLoader.load(FrameworkFactory.class);
       FrameworkFactory factory = loader.iterator().next();
       // And get a framework.
       framework = factory.newFramework(configProps);
       try {
       } catch (BundleException e) {
           throw new SomeRuntimeException("Failed to initialize framework", e);

Back to the top