/** * 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; }
/** * 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; }
/** * 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 cached instance of {@link ConfigurationService}. */ private static ConfigurationService getConfigService() { if (configService == null) { configService = ServiceUtils.getService(bundleContext, ConfigurationService.class); } return configService; }