/******************************************************************************* * Copyright (c) 2013 RelationWare, Benno Luthiger * 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: * RelationWare, Benno Luthiger ******************************************************************************/ package org.ripla; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; /** * * * @author Luthiger */ public class Activator implements BundleActivator { private static BundleContext context; static BundleContext getContext() { return context; } @Override public void start(final BundleContext bundleContext) throws Exception { Activator.context = bundleContext; } @Override public void stop(final BundleContext bundleContext) throws Exception { Activator.context = null; } }