public final class Activator
extends java.lang.Object
implements org.osgi.framework.BundleActivator, org.osgi.framework.SynchronousBundleListener
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.atomic.AtomicReference<org.osgi.framework.BundleContext> |
contextRef |
private static Logger |
LOGGER |
(package private) org.osgi.framework.ServiceRegistration |
provideRegistration |
Constructor and Description |
---|
Activator() |
Modifier and Type | Method and Description |
---|---|
void |
bundleChanged(org.osgi.framework.BundleEvent event) |
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) |
private static final Logger LOGGER
private final java.util.concurrent.atomic.AtomicReference<org.osgi.framework.BundleContext> contextRef
org.osgi.framework.ServiceRegistration provideRegistration
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
java.lang.Exception
private static void scanInstalledBundlesForPlugins(org.osgi.framework.BundleContext context)
private static void scanBundleForPlugins(org.osgi.framework.Bundle bundle)
private static void stopBundlePlugins(org.osgi.framework.Bundle bundle)
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
java.lang.Exception
public void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged
in interface org.osgi.framework.BundleListener