Class Activator
java.lang.Object
org.apache.logging.log4j.util.ProviderActivator
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 ProviderActivator
implements org.osgi.framework.SynchronousBundleListener
OSGi BundleActivator.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.osgi.framework.ServiceRegistration
<ContextDataProvider> private final AtomicReference
<org.osgi.framework.BundleContext> private static final Logger
Fields inherited from class org.apache.logging.log4j.util.ProviderActivator
API_VERSION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
bundleChanged
(org.osgi.framework.BundleEvent event) private static void
loadContextProviders
(org.osgi.framework.BundleContext bundleContext) private static void
scanBundleForPlugins
(org.osgi.framework.Bundle bundle) private static void
scanInstalledBundlesForPlugins
(org.osgi.framework.BundleContext context) void
start
(org.osgi.framework.BundleContext context) void
stop
(org.osgi.framework.BundleContext context) private static void
stopBundlePlugins
(org.osgi.framework.Bundle bundle)
-
Field Details
-
LOGGER
-
contextRef
-
contextDataRegistration
-
-
Constructor Details
-
Activator
public Activator()
-
-
Method Details
-
start
- Specified by:
start
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
start
in classProviderActivator
- 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
- Specified by:
stop
in interfaceorg.osgi.framework.BundleActivator
- Overrides:
stop
in classProviderActivator
- Throws:
Exception
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event) - Specified by:
bundleChanged
in interfaceorg.osgi.framework.BundleListener
-