| package org.eclipse.equinox.internal.p2.extensionlocation; |
| |
| import org.osgi.framework.BundleActivator; |
| import org.osgi.framework.BundleContext; |
| |
| public class Activator implements BundleActivator { |
| |
| public static final String ID = "org.eclipse.equinox.p2.extensionlocation"; //$NON-NLS-1$null; |
| private static volatile BundleContext bundleContext; |
| |
| /* |
| * (non-Javadoc) |
| * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext) |
| */ |
| public void start(BundleContext context) throws Exception { |
| bundleContext = context; |
| } |
| |
| /* |
| * (non-Javadoc) |
| * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext) |
| */ |
| public void stop(BundleContext context) throws Exception { |
| bundleContext = null; |
| } |
| |
| public static BundleContext getContext() { |
| return bundleContext; |
| } |
| |
| } |