Package org.osgi.service.application

Examples of org.osgi.service.application.ApplicationDescriptor.launch()


      ApplicationDescriptor desc = getApplicationDescriptor();
      if (desc == null)
        // in this case the application descriptor was removed;
        // we must return and keep the scheduled app incase the application comes back
        return;
      desc.launch(getArguments(event));
    } catch (Exception e) {
      String message = NLS.bind(Messages.scheduled_app_launch_error, sr);
      Activator.log(new FrameworkLogEntry(Activator.PI_APP, FrameworkLogEntry.WARNING, 0, message, 0, e, null));
      return; // return here to avoid removing non-recurring apps when an error occurs
    }
View Full Code Here


              Map<String, Object> test = new HashMap<String, Object>();
              if (!brandingArgs.isEmpty()) {
                test.put(IApplicationContext.APPLICATION_ARGS, brandingArgs.toArray(new String[0]));
              }

              desc.launch(test);
            } catch (ApplicationException e) {
              System.err.println("Failed to launch application '" + applicationId + "'");
              e.printStackTrace();
            }
          }
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.