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 Summary
FieldsModifier and TypeFieldDescription(package private) org.osgi.framework.ServiceRegistration
private final AtomicReference
<org.osgi.framework.BundleContext> private static final Logger
(package private) org.osgi.framework.ServiceRegistration
-
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
-
provideRegistration
org.osgi.framework.ServiceRegistration provideRegistration -
contextDataRegistration
org.osgi.framework.ServiceRegistration contextDataRegistration
-
-
Constructor Details
-
Activator
public Activator()
-
-
Method Details
-
start
- Specified by:
start
in interfaceorg.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
- 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
-