Class SisuExtender

java.lang.Object
org.eclipse.sisu.launch.SisuExtender
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class SisuExtender extends Object implements org.osgi.framework.BundleActivator
OSGi extender that uses Sisu and Guice to wire up applications from one or more component bundles.
To enable it install org.eclipse.sisu.inject.extender, or adapt the class for your own extender.
  • Field Details

  • Constructor Details

    • SisuExtender

      public SisuExtender()
  • Method Details

    • start

      public void start(org.osgi.framework.BundleContext context)
      Specified by:
      start in interface org.osgi.framework.BundleActivator
    • stop

      public void stop(org.osgi.framework.BundleContext context)
      Specified by:
      stop in interface org.osgi.framework.BundleActivator
    • bundleStateMask

      protected int bundleStateMask()
      Returns the mask of bundle states this extender is interested in.
      Returns:
      State mask
    • createTracker

      protected SisuTracker createTracker(org.osgi.framework.BundleContext context)
      Creates a new tracker of component bundles for this extender.
      Parameters:
      context - The extender context
      Returns:
      New bundle tracker
    • createLocator

      protected MutableBeanLocator createLocator(org.osgi.framework.BundleContext context)
      Returns a new locator of bound components for this extender.
      Parameters:
      context - The extender context
      Returns:
      New bean locator
    • findLocator

      protected final MutableBeanLocator findLocator(org.osgi.framework.BundleContext context)
      Finds the locator associated with this extender; creates one if none exist.
      Parameters:
      context - The extender context
      Returns:
      Associated bean locator