Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.osdependent
Class OsDependentActivator

java.lang.Object
  extended by net.java.sip.communicator.impl.osdependent.OsDependentActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

public class OsDependentActivator
extends Object
implements org.osgi.framework.BundleActivator

Registers the Systray in the UI Service.

Author:
Nicolas Chamouard, Lubomir Marinov

Field Summary
static org.osgi.framework.BundleContext bundleContext
          A currently valid bundle context.
static UIService uiService
           
 
Constructor Summary
OsDependentActivator()
           
 
Method Summary
static ConfigurationService getConfigurationService()
          Returns the ConfigurationService obtained from the bundle context.
static ResourceManagementService getResources()
          Returns the ResourceManagementService, through which we will access all resources.
static ShutdownService getShutdownService()
          Gets a reference to a ShutdownService implementation currently registered in the bundle context of the active OsDependentActivator instance.
static UIService getUIService()
          Returns the UIService obtained from the bundle context.
 void start(org.osgi.framework.BundleContext bc)
          Called when this bundle is started.
 void stop(org.osgi.framework.BundleContext bc)
          Called when this bundle is stopped so the Framework can perform the bundle-specific activities necessary to stop the bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundleContext

public static org.osgi.framework.BundleContext bundleContext
A currently valid bundle context.


uiService

public static UIService uiService
Constructor Detail

OsDependentActivator

public OsDependentActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bc)
           throws Exception
Called when this bundle is started.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bc - The execution context of the bundle being started.
Throws:
Exception - If

stop

public void stop(org.osgi.framework.BundleContext bc)
          throws Exception
Called when this bundle is stopped so the Framework can perform the bundle-specific activities necessary to stop the bundle.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bc - The execution context of the bundle being stopped.
Throws:
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.

getConfigurationService

public static ConfigurationService getConfigurationService()
Returns the ConfigurationService obtained from the bundle context.

Returns:
the ConfigurationService obtained from the bundle context

getShutdownService

public static ShutdownService getShutdownService()
Gets a reference to a ShutdownService implementation currently registered in the bundle context of the active OsDependentActivator instance.

The returned reference to ShutdownService is not being cached.

Returns:
reference to a ShutdownService implementation currently registered in the bundle context of the active OsDependentActivator instance

getUIService

public static UIService getUIService()
Returns the UIService obtained from the bundle context.

Returns:
the UIService obtained from the bundle context

getResources

public static ResourceManagementService getResources()
Returns the ResourceManagementService, through which we will access all resources.

Returns:
the ResourceManagementService, through which we will access all resources.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.