package SCHUNK.EndOfArm.impl;

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

import com.ur.urcap.api.contribution.InstallationNodeService;
import com.ur.urcap.api.contribution.ProgramNodeService;

/**
 * Hello world activator for the OSGi bundle URCAPS contribution
 *
 */
public class Activator implements BundleActivator {
	@Override
	public void start(BundleContext context) throws Exception {
		System.out.println("Activator says Hello World!");
		context.registerService(ProgramNodeService.class, new GrpOpenProgramNodeService(), null);
		context.registerService(ProgramNodeService.class, new GrpCloseProgramNodeService(), null);
		context.registerService(InstallationNodeService.class, new GrpInstallationNodeService(), null);
	}

	@Override
	public void stop(BundleContext bundleContext) throws Exception {
		System.out.println("Activator says Goodbye World!");
	}
}

 