public class DesktopUtilActivator extends java.lang.Object implements org.osgi.framework.BundleActivator, VerifyCertificateDialogService
VerifyCertificateDialogService.VerifyCertificateDialog
Modifier and Type | Field and Description |
---|---|
(package private) static org.osgi.framework.BundleContext |
bundleContext |
Constructor and Description |
---|
DesktopUtilActivator() |
Modifier and Type | Method and Description |
---|---|
VerifyCertificateDialogService.VerifyCertificateDialog |
createDialog(java.security.cert.Certificate[] certs,
java.lang.String title,
java.lang.String message)
Creates the dialog.
|
static AccountManager |
getAccountManager()
Returns the AccountManager obtained from the bundle context.
|
static org.jitsi.service.audionotifier.AudioNotifierService |
getAudioNotifier()
Returns the AudioNotifierService obtained from the bundle
context.
|
static BrowserLauncherService |
getBrowserLauncher()
Returns the BrowserLauncherService obtained from the bundle
context.
|
static org.jitsi.service.configuration.ConfigurationService |
getConfigurationService()
Returns the ConfigurationService currently registered.
|
static org.jitsi.service.fileaccess.FileAccessService |
getFileAccessService()
Returns the FileAccessService obtained from the bundle context.
|
static GlobalDisplayDetailsService |
getGlobalDisplayDetailsService()
Returns the GlobalDisplayDetailsService obtained from the bundle
context.
|
static java.awt.image.BufferedImage |
getImage(java.lang.String imageID)
Returns the image corresponding to the given imageID.
|
static KeybindingsService |
getKeybindingsService()
Returns the KeybindingsService currently registered.
|
static org.jitsi.service.neomedia.MediaService |
getMediaService()
Returns an instance of the MediaService obtained from the
bundle context.
|
static org.jitsi.service.resources.ResourceManagementService |
getResources()
Returns the service giving access to all application resources.
|
static UIService |
getUIService()
Gets the UIService instance registered in the
BundleContext of the UtilActivator.
|
void |
start(org.osgi.framework.BundleContext context)
Calls Thread.setUncaughtExceptionHandler()
|
void |
stop(org.osgi.framework.BundleContext context)
Doesn't do anything.
|
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
context
- The execution context of the bundle being started
(unused).java.lang.Exception
- If this method throws an exception, this bundle is
marked as stopped and the Framework will remove this bundle's
listeners, unregister all services registered by this bundle, and
release all services used by this bundle.public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
context
- The execution context of the bundle being stopped.java.lang.Exception
- If this method throws an exception, the bundle is
still marked as stopped, and the Framework will remove the bundle's
listeners, unregister all services registered by the bundle, and
release all services used by the bundle.public static org.jitsi.service.configuration.ConfigurationService getConfigurationService()
public static org.jitsi.service.resources.ResourceManagementService getResources()
public static java.awt.image.BufferedImage getImage(java.lang.String imageID)
imageID
- the identifier of the imagepublic static KeybindingsService getKeybindingsService()
public static BrowserLauncherService getBrowserLauncher()
public static UIService getUIService()
public VerifyCertificateDialogService.VerifyCertificateDialog createDialog(java.security.cert.Certificate[] certs, java.lang.String title, java.lang.String message)
createDialog
in interface VerifyCertificateDialogService
certs
- the certificates listtitle
- The title of the dialog; when null the resource
service.gui.CERT_DIALOG_TITLE is loaded and used.message
- A text that describes why the verification failed.public static AccountManager getAccountManager()
public static org.jitsi.service.fileaccess.FileAccessService getFileAccessService()
public static org.jitsi.service.neomedia.MediaService getMediaService()
public static org.jitsi.service.audionotifier.AudioNotifierService getAudioNotifier()
public static GlobalDisplayDetailsService getGlobalDisplayDetailsService()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.