Class Activator

java.lang.Object
org.apache.logging.log4j.core.osgi.Activator
All Implemented Interfaces:
EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener, org.osgi.framework.SynchronousBundleListener

public final class Activator extends Object implements org.osgi.framework.BundleActivator, org.osgi.framework.SynchronousBundleListener
OSGi BundleActivator.
  • Field Details

    • LOGGER

      private static final Logger LOGGER
    • contextRef

      private final AtomicReference<org.osgi.framework.BundleContext> contextRef
    • provideRegistration

      org.osgi.framework.ServiceRegistration provideRegistration
    • contextDataRegistration

      org.osgi.framework.ServiceRegistration contextDataRegistration
  • Constructor Details

    • Activator

      public Activator()
  • Method Details

    • start

      public void start(org.osgi.framework.BundleContext context) throws Exception
      Specified by:
      start in interface org.osgi.framework.BundleActivator
      Throws:
      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 Exception
      Specified by:
      stop in interface org.osgi.framework.BundleActivator
      Throws:
      Exception
    • bundleChanged

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