public class SparkleActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator
Constructor and Description |
---|
SparkleActivator() |
Modifier and Type | Method and Description |
---|---|
static org.jitsi.service.configuration.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(java.lang.String pathToSparkleFramework,
boolean updateAtStartup,
int checkInterval,
java.lang.String downloadLink,
java.lang.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
|
public static void initSparkle(java.lang.String pathToSparkleFramework, boolean updateAtStartup, int checkInterval, java.lang.String downloadLink, java.lang.String menuItemTitle)
pathToSparkleFramework
- the path to the Sparkle framerokupdateAtStartup
- 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.public void start(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
bundleContext
- BundleContextjava.lang.Exception
- if something goes wrong during sparkle initializationpublic void stop(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
bundleContext
- a reference to the currently valid
BundleContextjava.lang.Exception
- if anything goes wrong (original, right ;) )public static org.jitsi.service.configuration.ConfigurationService getConfigurationService()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.