|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.util.UtilActivator
public class UtilActivator
The only raison d'etre for this Activator is so that it would set a global exception handler. It doesn't export any services and neither it runs any initialization - all it does is call Thread.setUncaughtExceptionHandler()
| Constructor Summary | |
|---|---|
UtilActivator()
|
|
| Method Summary | |
|---|---|
static ConfigurationService |
getConfigurationService()
Returns the ConfigurationService currently registered. |
static BufferedImage |
getImage(String imageID)
Returns the image corresponding to the given imageID. |
static KeybindingsService |
getKeybindingsService()
Returns the KeybindingsService currently registered. |
static NetworkAddressManagerService |
getNetworkAddressManagerService()
Returns the service giving access to current network configuration. |
static ResourceManagementService |
getResources()
Returns the service giving access to all application resources. |
void |
start(org.osgi.framework.BundleContext context)
Calls Thread.setUncaughtExceptionHandler() |
void |
stop(org.osgi.framework.BundleContext context)
Doesn't do anything. |
void |
uncaughtException(Thread thread,
Throwable exc)
Method invoked when a thread would terminate due to the given uncaught exception. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UtilActivator()
| Method Detail |
|---|
public void start(org.osgi.framework.BundleContext context)
throws Exception
start in interface org.osgi.framework.BundleActivatorcontext - The execution context of the bundle being started
(unused).
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(Thread thread,
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 Thread.UncaughtExceptionHandlerthread - the threadexc - the exception
public void stop(org.osgi.framework.BundleContext context)
throws Exception
stop in interface org.osgi.framework.BundleActivatorcontext - The execution context of the bundle being stopped.
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 ConfigurationService getConfigurationService()
public static KeybindingsService getKeybindingsService()
public static ResourceManagementService getResources()
public static NetworkAddressManagerService getNetworkAddressManagerService()
public static BufferedImage getImage(String imageID)
imageID - the identifier of the image
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||