Beispiel #1
0
  private void maybeDoShutdown() {
    if (shutdownInProgress && conferences.size() == 0) {
      logger.info("Focus is shutting down NOW");

      ShutdownService shutdownService =
          ServiceUtils.getService(FocusBundleActivator.bundleContext, ShutdownService.class);

      shutdownService.beginShutdown();
    }
  }
 /**
  * Returns the <tt>BrowserLauncherService</tt> obtained from the bundle context.
  *
  * @return the <tt>BrowserLauncherService</tt> obtained from the bundle context
  */
 static BrowserLauncherService getBrowserLauncher() {
   if (browserLauncher == null) {
     browserLauncher = ServiceUtils.getService(bundleContext, BrowserLauncherService.class);
   }
   return browserLauncher;
 }
 /**
  * Returns a reference to the UIService implementation currently registered in the bundle context
  * or null if no such implementation was found.
  *
  * @return a reference to a UIService implementation currently registered in the bundle context or
  *     null if no such implementation was found.
  */
 static UIService getUIService() {
   if (uiService == null) uiService = ServiceUtils.getService(bundleContext, UIService.class);
   return uiService;
 }
 /**
  * Gets a reference to a <code>ShutdownService</code> implementation currently registered in the
  * bundle context of the active <code>UpdateCheckActivator</code> instance.
  *
  * <p>The returned reference to <code>ShutdownService</code> is not being cached.
  *
  * @return reference to a <code>ShutdownService</code> implementation currently registered in the
  *     bundle context of the active <code>UpdateCheckActivator</code> instance
  */
 static ShutdownService getShutdownService() {
   return ServiceUtils.getService(bundleContext, ShutdownService.class);
 }
 /**
  * Returns the <tt>ConfigurationService</tt> obtained from the bundle context.
  *
  * @return the <tt>ConfigurationService</tt> obtained from the bundle context
  */
 static ConfigurationService getConfiguration() {
   if (configuration == null) {
     configuration = ServiceUtils.getService(bundleContext, ConfigurationService.class);
   }
   return configuration;
 }