Class SisuBundlePlan

java.lang.Object
org.eclipse.sisu.launch.SisuBundlePlan
All Implemented Interfaces:
BundlePlan

public class SisuBundlePlan extends Object implements BundlePlan
BundlePlan that prepares BindingPublishers for JSR330 bundles.
  • Field Details

  • Constructor Details

  • Method Details

    • prepare

      public BindingPublisher prepare(org.osgi.framework.Bundle bundle)
      Description copied from interface: BundlePlan
      Prepares a BindingPublisher of components for the given bundle.
      Specified by:
      prepare in interface BundlePlan
      Parameters:
      bundle - The bundle
      Returns:
      Publisher of bindings; null if the plan doesn't apply
    • appliesTo

      protected boolean appliesTo(org.osgi.framework.Bundle bundle)
      Returns:
      true if plan applies to the bundle; otherwise false
    • inject

      protected com.google.inject.Injector inject(com.google.inject.Module module)
      Creates an Injector from the composed Module configuration.
      Parameters:
      module - The module
      Returns:
      Bundle injector
    • compose

      protected com.google.inject.Module compose(org.osgi.framework.Bundle bundle)
      Composes a Module that configures components from the given bundle.
      Parameters:
      bundle - The bundle
      Returns:
      Bundle module