Activator.java 746 B

123456789101112131415161718192021
  1. package at.acdp.opcur;
  2. import org.osgi.framework.BundleActivator;
  3. import org.osgi.framework.BundleContext;
  4. import com.ur.urcap.api.contribution.InstallationNodeService;
  5. import com.ur.urcap.api.contribution.ProgramNodeService;
  6. public class Activator implements BundleActivator {
  7. @Override
  8. public void start(final BundleContext context) throws Exception {
  9. HelloWorldInstallationNodeService helloWorldInstallationNodeService = new HelloWorldInstallationNodeService();
  10. context.registerService(InstallationNodeService.class, helloWorldInstallationNodeService, null);
  11. context.registerService(ProgramNodeService.class, new HelloWorldProgramNodeService(), null);
  12. }
  13. @Override
  14. public void stop(BundleContext context) throws Exception {
  15. }
  16. }