/*********************************************************************************************************************** | |
* Copyright (c) 2008 empolis GmbH and brox IT Solutions GmbH. All rights reserved. This program and the accompanying | |
* materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, | |
* and is available at http://www.eclipse.org/legal/epl-v10.html | |
* | |
* Contributors: Daniel Stucky (empolis GmbH) - initial API and implementation | |
**********************************************************************************************************************/ | |
package org.eclipse.smila.utils; | |
import org.osgi.framework.BundleActivator; | |
import org.osgi.framework.BundleContext; | |
/** | |
* BundleActivator for org.eclipse.smila.utils. | |
*/ | |
public class UtilsActivator implements BundleActivator { | |
/** | |
* The BundleContext. | |
*/ | |
private static BundleContext s_bundleContext; | |
/** | |
* {@inheritDoc} | |
* | |
* @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext) | |
*/ | |
public void start(BundleContext context) throws Exception { | |
s_bundleContext = context; | |
} | |
/** | |
* {@inheritDoc} | |
* | |
* @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext) | |
*/ | |
public void stop(BundleContext context) throws Exception { | |
s_bundleContext = null; | |
} | |
/** | |
* Get the BundleContext. | |
* | |
* @return the BundleContext | |
*/ | |
public static BundleContext getBundleContext() { | |
return s_bundleContext; | |
} | |
} |