Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.update
Class UpdateActivator

java.lang.Object
  extended by net.java.sip.communicator.plugin.update.UpdateActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

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

Implements BundleActivator for the update plug-in.

Author:
Damian Minkov, Lyubomir Marinov

Field Summary
(package private) static org.osgi.framework.BundleContext bundleContext
          The BundleContext in which the one and only UpdateActivator instance of the update plug-in has been started.
 
Constructor Summary
UpdateActivator()
           
 
Method Summary
(package private) static BrowserLauncherService getBrowserLauncher()
          Returns the BrowserLauncherService obtained from the bundle context.
(package private) static ConfigurationService getConfiguration()
          Returns the ConfigurationService obtained from the bundle context.
(package private) static ShutdownService getShutdownService()
          Gets a reference to a ShutdownService implementation currently registered in the bundle context of the active UpdateCheckActivator instance.
(package private) static UIService getUIService()
          Returns a reference to the UIService implementation currently registered in the bundle context or null if no such implementation was found.
(package private) static UpdateService getUpdateService()
          Returns the update service instance.
 void start(org.osgi.framework.BundleContext bundleContext)
          Starts this bundle
 void stop(org.osgi.framework.BundleContext bundleContext)
          Stop the bundle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundleContext

static org.osgi.framework.BundleContext bundleContext
The BundleContext in which the one and only UpdateActivator instance of the update plug-in has been started.

Constructor Detail

UpdateActivator

public UpdateActivator()
Method Detail

getBrowserLauncher

static BrowserLauncherService getBrowserLauncher()
Returns the BrowserLauncherService obtained from the bundle context.

Returns:
the BrowserLauncherService obtained from the bundle context

getConfiguration

static ConfigurationService getConfiguration()
Returns the ConfigurationService obtained from the bundle context.

Returns:
the ConfigurationService obtained from the bundle context

getShutdownService

static ShutdownService getShutdownService()
Gets a reference to a ShutdownService implementation currently registered in the bundle context of the active UpdateCheckActivator 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 UpdateCheckActivator instance

getUIService

static UIService getUIService()
Returns a reference to the UIService implementation currently registered in the bundle context or null if no such implementation was found.

Returns:
a reference to a UIService implementation currently registered in the bundle context or null if no such implementation was found.

start

public void start(org.osgi.framework.BundleContext bundleContext)
           throws Exception
Starts this bundle

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - BundleContext provided by OSGi framework
Throws:
Exception - if something goes wrong during start

stop

public void stop(org.osgi.framework.BundleContext bundleContext)
          throws Exception
Stop the bundle. Nothing to stop for now.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - BundleContext provided by OSGi framework
Throws:
Exception - if something goes wrong during stop

getUpdateService

static UpdateService getUpdateService()
Returns the update service instance.

Returns:
the update service instance

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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