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.ServiceRegistrationprivate final AtomicReference<org.osgi.framework.BundleContext> private static final Logger(package private) org.osgi.framework.ServiceRegistration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbundleChanged(org.osgi.framework.BundleEvent event) private static voidloadContextProviders(org.osgi.framework.BundleContext bundleContext) private static voidscanBundleForPlugins(org.osgi.framework.Bundle bundle) private static voidscanInstalledBundlesForPlugins(org.osgi.framework.BundleContext context) voidstart(org.osgi.framework.BundleContext context) voidstop(org.osgi.framework.BundleContext context) private static voidstopBundlePlugins(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:
startin 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:
stopin interfaceorg.osgi.framework.BundleActivator- Throws:
Exception
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event) - Specified by:
bundleChangedin interfaceorg.osgi.framework.BundleListener
-