All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.velossity.sample.device.impl.Activator Maven / Gradle / Ivy

The newest version!
package fr.velossity.sample.device.impl;

import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

/**
 * Bundle activator, just instantiates a Consumer at activation.
 * @author C. Saint-Marcel
 * 
 */
public class Activator implements BundleActivator {
	
	private Consumer myConsumer;
	
	/**
	 * @see BundleActivator#start(BundleContext)
	 */
	public void start(BundleContext context) throws Exception {
		myConsumer = new Consumer();
		myConsumer.activate(context);
	}

	/**
	 * @see BundleActivator#stop(BundleContext)
	 */
	public void stop(BundleContext context) throws Exception {
		myConsumer.deactivate(context);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy