Class SisuBundlePlan

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean appliesTo​(org.osgi.framework.Bundle bundle)  
      protected com.google.inject.Module compose​(org.osgi.framework.Bundle bundle)
      Composes a Module that configures components from the given bundle.
      protected com.google.inject.Injector inject​(com.google.inject.Module module)
      Creates an Injector from the composed Module configuration.
      BindingPublisher prepare​(org.osgi.framework.Bundle bundle)
      Prepares a BindingPublisher of components for the given bundle.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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