Class Activator

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

@Header(name="Bundle-Activator",value="${@class}") @Header(name="Bundle-ActivationPolicy",value="lazy") @InternalApi public class Activator extends Object implements org.osgi.framework.BundleActivator, org.osgi.framework.SynchronousBundleListener
Consider this class private. OSGi bundle activator. Used for locating an implementation of LoggerContextFactory et al. that have corresponding META-INF/log4j-provider.properties files. As with all OSGi BundleActivator classes, this class is not for public use and is only useful in an OSGi framework environment.
  • Constructor Details

    • Activator

      public Activator()
  • Method Details

    • start

      public void start(org.osgi.framework.BundleContext bundleContext) throws Exception
      Specified by:
      start in interface org.osgi.framework.BundleActivator
      Throws:
      Exception
    • stop

      public void stop(org.osgi.framework.BundleContext bundleContext) 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