X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.jdbc.ontology%2Fsrc%2Forg%2Fsimantics%2Fjdbc%2Fontology%2FActivator.java;fp=bundles%2Forg.simantics.jdbc.ontology%2Fsrc%2Forg%2Fsimantics%2Fjdbc%2Fontology%2FActivator.java;h=596e25da4cbc2158d6460924e00f624d250450c9;hb=c758b43751ff59edd81ab85ea7bd320446824d99;hp=0000000000000000000000000000000000000000;hpb=1adc3807dea544d29512510dc9546ec65b72e389;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.jdbc.ontology/src/org/simantics/jdbc/ontology/Activator.java b/bundles/org.simantics.jdbc.ontology/src/org/simantics/jdbc/ontology/Activator.java new file mode 100644 index 000000000..596e25da4 --- /dev/null +++ b/bundles/org.simantics.jdbc.ontology/src/org/simantics/jdbc/ontology/Activator.java @@ -0,0 +1,30 @@ +package org.simantics.jdbc.ontology; + +import org.osgi.framework.BundleActivator; +import org.osgi.framework.BundleContext; + +public class Activator implements BundleActivator { + + private static BundleContext context; + + static BundleContext getContext() { + return context; + } + + /* + * (non-Javadoc) + * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext) + */ + public void start(BundleContext bundleContext) throws Exception { + Activator.context = bundleContext; + } + + /* + * (non-Javadoc) + * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext) + */ + public void stop(BundleContext bundleContext) throws Exception { + Activator.context = null; + } + +}