1 package org.simantics.scl.rest;
3 import org.osgi.framework.BundleActivator;
4 import org.osgi.framework.BundleContext;
6 public class Activator implements BundleActivator {
8 private static BundleContext context;
10 static BundleContext getContext() {
18 * org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
20 public void start(BundleContext bundleContext) throws Exception {
21 Activator.context = bundleContext;
28 * org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
30 public void stop(BundleContext bundleContext) throws Exception {
32 Activator.context = null;