public class GuiActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator
Modifier and Type | Field and Description |
---|---|
static org.osgi.framework.BundleContext |
bundleContext
OSGi bundle context.
|
static boolean |
isStarted
Indicates if this bundle has been started.
|
Constructor and Description |
---|
GuiActivator() |
Modifier and Type | Method and Description |
---|---|
static AccountManager |
getAccountManager()
Returns the AccountManager obtained from the bundle context.
|
static Account[] |
getAccounts(java.util.List<ProtocolProviderService> providers)
Returns the list of wrapped protocol providers.
|
static AlertUIService |
getAlertUIService()
Returns the implementation of the AlertUIService.
|
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 CallHistoryService |
getCallHistoryService()
Returns the CallHistoryService obtained from the bundle
context.
|
static org.jitsi.service.configuration.ConfigurationService |
getConfigurationService()
Returns the ConfigurationService obtained from the bundle
context.
|
static TreeContactList |
getContactList()
Returns the component used to show the contact list.
|
static MetaContactListService |
getContactListService()
Returns the MetaContactListService obtained from the bundle
context.
|
static java.util.List<ContactSourceService> |
getContactSources()
Returns a list of all registered contact sources.
|
static CredentialsStorageService |
getCredentialsStorageService()
Returns a reference to a CredentialsStorageService implementation
currently registered in the bundle context or null if no such
implementation was found.
|
static DemuxContactSourceService |
getDemuxContactSourceService()
Returns the DemuxContactSourceService obtained from the bundle
context.
|
static DesktopService |
getDesktopService()
Returns the DesktopService obtained from the bundle context.
|
static DirectImageReplacementService |
getDirectImageReplacementSource()
Returns the DirectImageReplacementService obtained from the
bundle context.
|
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 GlobalStatusService |
getGlobalStatusService()
Returns the GlobalStatusService obtained from the bundle
context.
|
static KeybindingsService |
getKeybindingsService()
Returns the KeybindingsService obtained from the bundle context.
|
static org.jitsi.service.neomedia.MediaService |
getMediaService()
Returns an instance of the MediaService obtained from the
bundle context.
|
static MessageHistoryService |
getMessageHistoryService()
Gets the service giving access to message history.
|
static MetaHistoryService |
getMetaHistoryService()
Returns the MetaHistoryService obtained from the bundle
context.
|
static MUCService |
getMUCService()
Returns a reference to a MUCService implementation
currently registered in the bundle context or null if no such
implementation was found.
|
static NotificationService |
getNotificationService()
Returns the NotificationService obtained from the bundle context.
|
static PhoneNumberI18nService |
getPhoneNumberI18nService()
Returns the PhoneNumberI18nService.
|
static ProtocolProviderService |
getPreferredAccount()
Returns the preferred account if there's one.
|
static java.util.Map<java.lang.Object,ProtocolProviderFactory> |
getProtocolProviderFactories()
Returns all ProtocolProviderFactorys obtained from the bundle
context.
|
static java.util.Map<java.lang.String,ReplacementService> |
getReplacementSources()
Returns all ReplacementServices obtained from the bundle
context.
|
static org.jitsi.service.resources.ResourceManagementService |
getResources()
Returns the ResourceManagementService, through which we will
access all resources.
|
static SecurityAuthority |
getSecurityAuthority()
Returns the SecurityAuthority implementation registered to
handle security authority events.
|
static SecurityAuthority |
getSecurityAuthority(java.lang.String protocolName)
Returns the SecurityAuthority implementation registered to
handle security authority events.
|
static SmiliesReplacementService |
getSmiliesReplacementSource()
Returns the SmiliesReplacementService obtained from the bundle
context.
|
static SystrayService |
getSystrayService()
Returns the SystrayService obtained from the bundle context.
|
static UIServiceImpl |
getUIService()
Returns the current implementation of the UIService.
|
static void |
setContactList(TreeContactList list)
Sets the contactList component currently used to show the
contact list.
|
void |
start(org.osgi.framework.BundleContext bContext)
Called when this bundle is started.
|
void |
stop(org.osgi.framework.BundleContext bContext)
Called when this bundle is stopped so the Framework can perform the
bundle-specific activities necessary to stop the bundle.
|
public static org.osgi.framework.BundleContext bundleContext
public static boolean isStarted
public void start(org.osgi.framework.BundleContext bContext) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
bContext
- The execution context of the bundle being started.java.lang.Exception
- if the bundle is not correctly startedpublic void stop(org.osgi.framework.BundleContext bContext) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
bContext
- 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 java.util.Map<java.lang.Object,ProtocolProviderFactory> getProtocolProviderFactories()
public static AccountManager getAccountManager()
public static org.jitsi.service.configuration.ConfigurationService getConfigurationService()
public static MetaHistoryService getMetaHistoryService()
public static MetaContactListService getContactListService()
public static CallHistoryService getCallHistoryService()
public static org.jitsi.service.audionotifier.AudioNotifierService getAudioNotifier()
public static BrowserLauncherService getBrowserLauncher()
public static GlobalStatusService getGlobalStatusService()
public static UIServiceImpl getUIService()
public static AlertUIService getAlertUIService()
public static SystrayService getSystrayService()
public static KeybindingsService getKeybindingsService()
public static org.jitsi.service.resources.ResourceManagementService getResources()
public static org.jitsi.service.fileaccess.FileAccessService getFileAccessService()
public static DesktopService getDesktopService()
public static org.jitsi.service.neomedia.MediaService getMediaService()
public static DemuxContactSourceService getDemuxContactSourceService()
public static GlobalDisplayDetailsService getGlobalDisplayDetailsService()
public static java.util.List<ContactSourceService> getContactSources()
public static java.util.Map<java.lang.String,ReplacementService> getReplacementSources()
public static SmiliesReplacementService getSmiliesReplacementSource()
public static DirectImageReplacementService getDirectImageReplacementSource()
public static SecurityAuthority getSecurityAuthority()
public static NotificationService getNotificationService()
public static SecurityAuthority getSecurityAuthority(java.lang.String protocolName)
protocolName
- protocol namepublic static void setContactList(TreeContactList list)
list
- the contact list object to setpublic static TreeContactList getContactList()
public static Account[] getAccounts(java.util.List<ProtocolProviderService> providers)
providers
- the list of protocol providerspublic static ProtocolProviderService getPreferredAccount()
public static CredentialsStorageService getCredentialsStorageService()
public static MUCService getMUCService()
public static MessageHistoryService getMessageHistoryService()
public static PhoneNumberI18nService getPhoneNumberI18nService()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.