Class Activator

  • All Implemented Interfaces:
    java.util.EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener, org.osgi.framework.SynchronousBundleListener

    public final class Activator
    extends ProviderActivator
    implements org.osgi.framework.SynchronousBundleListener
    OSGi BundleActivator.
    • Field Detail

      • LOGGER

        private static final Logger LOGGER
      • contextRef

        private final java.util.concurrent.atomic.AtomicReference<org.osgi.framework.BundleContext> contextRef
      • contextDataRegistration

        private org.osgi.framework.ServiceRegistration<ContextDataProvider> contextDataRegistration
    • Constructor Detail

      • Activator

        public Activator()
    • Method Detail

      • start

        public void start​(org.osgi.framework.BundleContext context)
                   throws java.lang.Exception
        Specified by:
        start in interface org.osgi.framework.BundleActivator
        Overrides:
        start in class ProviderActivator
        Throws:
        java.lang.Exception
      • scanInstalledBundlesForPlugins

        private static void scanInstalledBundlesForPlugins​(org.osgi.framework.BundleContext context)
      • scanBundleForPlugins

        private static void scanBundleForPlugins​(org.osgi.framework.Bundle bundle)
      • loadContextProviders

        private static void loadContextProviders​(org.osgi.framework.BundleContext bundleContext)
      • stopBundlePlugins

        private static void stopBundlePlugins​(org.osgi.framework.Bundle bundle)
      • stop

        public void stop​(org.osgi.framework.BundleContext context)
                  throws java.lang.Exception
        Specified by:
        stop in interface org.osgi.framework.BundleActivator
        Overrides:
        stop in class ProviderActivator
        Throws:
        java.lang.Exception
      • bundleChanged

        public void bundleChanged​(org.osgi.framework.BundleEvent event)
        Specified by:
        bundleChanged in interface org.osgi.framework.BundleListener