package org.archstudio.utils.resources; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; public class Activator implements BundleActivator { private static BundleContext context = null; @Override public void start(BundleContext context) throws Exception { Activator.context = context; } @Override public void stop(BundleContext context) throws Exception { Activator.context = null; } public static BundleContext getContext() { return context; } }