1 /*******************************************************************************
\r
2 * Copyright (c) 2015, 2016 Association for Decentralized
\r
3 * Information Management in Industry THTH ry.
\r
4 * All rights reserved. This program and the accompanying materials
\r
5 * are made available under the terms of the THTH Simantics
\r
6 * Division Member Component License which accompanies this
\r
7 * distribution, and is available at
\r
8 * http://www.simantics.org/legal/sdmcl-v10.html
\r
11 * Semantum Oy - initial API and implementation
\r
12 *******************************************************************************/
13 package org.simantics.document;
\r
15 import org.osgi.framework.BundleActivator;
\r
16 import org.osgi.framework.BundleContext;
\r
18 public class Activator implements BundleActivator {
\r
20 private static BundleContext context;
\r
22 static BundleContext getContext() {
\r
28 * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
\r
30 public void start(BundleContext bundleContext) throws Exception {
\r
31 Activator.context = bundleContext;
\r
36 * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
\r
38 public void stop(BundleContext bundleContext) throws Exception {
\r
39 Activator.context = null;
\r