Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.sparkle
Class SparkleActivator

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

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

Activates the Sparkle Framework

Author:
Romain Kuntz

Constructor Summary
SparkleActivator()
           
 
Method Summary
static ConfigurationService getConfigurationService()
          Returns a reference to a ConfigurationService implementation currently registered in the bundle context or null if no such implementation was found.
static void initSparkle(String pathToSparkleFramework, boolean updateAtStartup, int checkInterval, String downloadLink, String menuItemTitle)
          Native method declaration
 void start(org.osgi.framework.BundleContext bundleContext)
          Initialize and start Sparkle
 void stop(org.osgi.framework.BundleContext bundleContext)
          Stops this bundle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SparkleActivator

public SparkleActivator()
Method Detail

initSparkle

public static void initSparkle(String pathToSparkleFramework,
                               boolean updateAtStartup,
                               int checkInterval,
                               String downloadLink,
                               String menuItemTitle)
Native method declaration

Parameters:
pathToSparkleFramework - the path to the Sparkle framerok
updateAtStartup - specifies whether Sparkle should be checking for updates on startup.
checkInterval - specifies an interval for the update checks.
downloadLink - a custom download link for sparkle (i.e. the SUFeedURL). If null the default URL will be choosen (the SUFeedURL parameter in the .app/Contents/Info.pList).
menuItemTitle - localized string to be used for the menu item title in macosx specific menu.

start

public void start(org.osgi.framework.BundleContext bundleContext)
           throws Exception
Initialize and start Sparkle

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

stop

public void stop(org.osgi.framework.BundleContext bundleContext)
          throws Exception
Stops this bundle

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bundleContext - a reference to the currently valid BundleContext
Throws:
Exception - if anything goes wrong (original, right ;) )

getConfigurationService

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

Returns:
a currently valid implementation of the ConfigurationService.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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