Class DefaultOSGiFramework

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.osgi.framework.BundleContext getBundleContext()
      Obtain bundle context of embedded OSGi framework.
      private org.osgi.framework.BundleContext launchEquinox()  
      private void tryActivateBundle​(org.osgi.framework.BundleContext bundleContext, java.lang.String symbolicName)  
      • Methods inherited from class java.lang.Object

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

      • logger

        private final org.slf4j.Logger logger
      • bundleContext

        private org.osgi.framework.BundleContext bundleContext
    • Constructor Detail

      • DefaultOSGiFramework

        public DefaultOSGiFramework​(OSGiConfigurator equinoxLocator)
    • Method Detail

      • launchEquinox

        private org.osgi.framework.BundleContext launchEquinox()
                                                        throws java.lang.Exception
        Throws:
        java.lang.Exception
      • tryActivateBundle

        private void tryActivateBundle​(org.osgi.framework.BundleContext bundleContext,
                                       java.lang.String symbolicName)
      • getBundleContext

        public org.osgi.framework.BundleContext getBundleContext()
        Description copied from interface: OSGiFramework
        Obtain bundle context of embedded OSGi framework. This causes the framework to be launched if it is not running yet.
        Specified by:
        getBundleContext in interface OSGiFramework
        Returns:
        bundle context of embedded OSGi framework