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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bundleChanged
(org.osgi.framework.BundleEvent event) void
start
(org.osgi.framework.BundleContext bundleContext) void
stop
(org.osgi.framework.BundleContext bundleContext)
-
Constructor Details
-
Activator
public Activator()
-
-
Method Details
-
start
- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Throws:
Exception
-
stop
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Throws:
Exception
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event) - Specified by:
bundleChanged
in interfaceorg.osgi.framework.BundleListener
-