public class UtilActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator, java.lang.Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
static org.osgi.framework.BundleContext |
bundleContext |
Constructor and Description |
---|
UtilActivator() |
Modifier and Type | Method and Description |
---|---|
static AccountManager |
getAccountManager()
Returns the AccountManager obtained from the bundle context.
|
static AlertUIService |
getAlertUIService()
Returns the MetaContactListService 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 org.jitsi.service.neomedia.MediaConfigurationService |
getMediaConfiguration()
Returns the
MediaConfigurationService instance registered in the
BundleContext of the UtilActivator. |
static org.jitsi.service.neomedia.MediaService |
getMediaService()
Returns an instance of the MediaService obtained from the
bundle context.
|
static java.util.Map<java.lang.Object,ProtocolProviderFactory> |
getProtocolProviderFactories()
Returns all ProtocolProviderFactorys obtained from the bundle
context.
|
static org.jitsi.service.resources.ResourceManagementService |
getResources()
Returns the service giving access to all application resources.
|
static SystrayService |
getSystrayService()
Gets the SystrayService instance registered in the
BundleContext of the UtilActivator.
|
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.
|
void |
uncaughtException(java.lang.Thread thread,
java.lang.Throwable exc)
Method invoked when a thread would terminate due to the given uncaught
exception.
|
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 uncaughtException(java.lang.Thread thread, java.lang.Throwable exc)
Any exception thrown by this method will be ignored by the Java Virtual Machine and thus won't screw our application.
uncaughtException
in interface java.lang.Thread.UncaughtExceptionHandler
thread
- the threadexc
- the exceptionpublic 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 UIService getUIService()
public static SystrayService getSystrayService()
public static org.jitsi.service.fileaccess.FileAccessService getFileAccessService()
public static org.jitsi.service.neomedia.MediaService getMediaService()
public static org.jitsi.service.neomedia.MediaConfigurationService getMediaConfiguration()
MediaConfigurationService
instance registered in the
BundleContext of the UtilActivator.public static java.util.Map<java.lang.Object,ProtocolProviderFactory> getProtocolProviderFactories()
public static AccountManager getAccountManager()
public static AlertUIService getAlertUIService()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.