Package org.emrys.webosgi.launcher.configurator

Examples of org.emrys.webosgi.launcher.configurator.Configurator


   * Runs the apply console command
   */
  public void run() {
    ServiceTracker tracker = new ServiceTracker(context, Configurator.class.getName(), null);
    tracker.open();
    Configurator configurator = (Configurator) tracker.getService();
    if (configurator != null) {
      try {
        if (configURL != null)
          configurator.applyConfiguration(configURL);
        else
          configurator.applyConfiguration();
       
        if (configurator.getUrlInUse() == null)
          interpreter.println("Config URL not set.");
      } catch (IOException e) {
        interpreter.println(e.getMessage());
      }
    } else {
View Full Code Here

TOP

Related Classes of org.emrys.webosgi.launcher.configurator.Configurator

Copyright © 2018 www.massapicom. 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.