Package org.eclipse.osgi.service.runnable

Examples of org.eclipse.osgi.service.runnable.ApplicationLauncher.shutdown()


    // Shutdown the ApplicationLauncher service if it is available.
    ServiceReference launcherRef = context.getServiceReference(ApplicationLauncher.class.getName());
    if (launcherRef != null) {
      ApplicationLauncher launcher = (ApplicationLauncher) context.getService(launcherRef);
      // this will force a currently running application to stop.
      launcher.shutdown();
      context.ungetService(launcherRef);
    }
  }

  public void addProperties(Properties properties) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.