Added org.simantics.filesystem.services
[simantics/platform.git] / bundles / org.simantics.filesystem.services / src / org / simantics / filesystem / services / internal / Activator.java
1 package org.simantics.filesystem.services.internal;
2
3 import org.osgi.framework.BundleActivator;
4 import org.osgi.framework.BundleContext;
5
6 /**
7  * @author Tuukka Lehtonen
8  * @since 1.31.0
9  */
10 public class Activator implements BundleActivator {
11
12         private static BundleContext context;
13
14         static BundleContext getContext() {
15                 return context;
16         }
17
18         /*
19          * (non-Javadoc)
20          * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
21          */
22         public void start(BundleContext bundleContext) throws Exception {
23                 Activator.context = bundleContext;
24         }
25
26         /*
27          * (non-Javadoc)
28          * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
29          */
30         public void stop(BundleContext bundleContext) throws Exception {
31                 Activator.context = null;
32         }
33
34 }