Package org.apache.logging.log4j.util
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.- Since:
- 2.0.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbundleChanged(org.osgi.framework.BundleEvent event) voidstart(org.osgi.framework.BundleContext bundleContext) voidstop(org.osgi.framework.BundleContext bundleContext)
-
Constructor Details
-
Activator
public Activator()
-
-
Method Details
-
start
- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event) - Specified by:
bundleChangedin interfaceorg.osgi.framework.BundleListener
-