blob: f59ab291061c08ca35dccfee0c849fff1b7cd388 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2015 Raymond Auge and others.
* 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:
* Raymond Auge - initial API and implementation
*******************************************************************************/
package org.eclipse.equinox.http.jetty.starter.internal;
import org.osgi.framework.*;
import org.osgi.framework.startlevel.BundleStartLevel;
public class Activator implements BundleActivator {
public void start(BundleContext context) throws Exception {
Bundle bundle = FrameworkUtil.getBundle(org.eclipse.equinox.http.jetty.JettyConstants.class);
BundleStartLevel bundleStartLevel = bundle.adapt(BundleStartLevel.class);
if (bundleStartLevel.isActivationPolicyUsed()) {
bundle.stop();
bundle.start();
}
}
public void stop(BundleContext context) throws Exception {
// ignore
}
}