Class Activator
- java.lang.Object
-
- org.apache.logging.log4j.util.ProviderActivator
-
- org.apache.logging.log4j.core.osgi.Activator
-
- All Implemented Interfaces:
java.util.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
Fields Modifier and Type Field Description private org.osgi.framework.ServiceRegistration<ContextDataProvider>contextDataRegistrationprivate java.util.concurrent.atomic.AtomicReference<org.osgi.framework.BundleContext>contextRefprivate static LoggerLOGGER-
Fields inherited from class org.apache.logging.log4j.util.ProviderActivator
API_VERSION
-
-
Constructor Summary
Constructors Constructor Description Activator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbundleChanged(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 Detail
-
LOGGER
private static final Logger LOGGER
-
contextRef
private final java.util.concurrent.atomic.AtomicReference<org.osgi.framework.BundleContext> contextRef
-
contextDataRegistration
private org.osgi.framework.ServiceRegistration<ContextDataProvider> contextDataRegistration
-
-
Method Detail
-
start
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception- Specified by:
startin interfaceorg.osgi.framework.BundleActivator- Overrides:
startin classProviderActivator- Throws:
java.lang.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
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception- Specified by:
stopin interfaceorg.osgi.framework.BundleActivator- Overrides:
stopin classProviderActivator- Throws:
java.lang.Exception
-
bundleChanged
public void bundleChanged(org.osgi.framework.BundleEvent event)
- Specified by:
bundleChangedin interfaceorg.osgi.framework.BundleListener
-
-