public class UpdateActivator extends AbstractServiceDependentActivator
Modifier and Type | Field and Description |
---|---|
(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 and Description |
---|
UpdateActivator() |
Modifier and Type | Method and Description |
---|---|
(package private) static BrowserLauncherService |
getBrowserLauncher()
Returns the BrowserLauncherService obtained from the bundle
context.
|
(package private) static org.jitsi.service.configuration.ConfigurationService |
getConfiguration()
Returns the ConfigurationService obtained from the bundle
context.
|
java.lang.Class<?> |
getDependentServiceClass()
This activator depends on UIService.
|
(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 |
setBundleContext(org.osgi.framework.BundleContext context)
Setting context to the activator, as soon as we have one.
|
void |
start(java.lang.Object dependentService)
The dependent service is available and the bundle will start.
|
void |
stop(org.osgi.framework.BundleContext bundleContext)
Stop the bundle.
|
start
static org.osgi.framework.BundleContext bundleContext
static BrowserLauncherService getBrowserLauncher()
static org.jitsi.service.configuration.ConfigurationService getConfiguration()
static ShutdownService getShutdownService()
ShutdownService
implementation
currently registered in the bundle context of the active
UpdateCheckActivator
instance.
The returned reference to ShutdownService
is not being
cached.
ShutdownService
implementation
currently registered in the bundle context of the active
UpdateCheckActivator
instancestatic UIService getUIService()
public void start(java.lang.Object dependentService)
start
in class AbstractServiceDependentActivator
dependentService
- the UIService this activator is waiting.public java.lang.Class<?> getDependentServiceClass()
getDependentServiceClass
in class AbstractServiceDependentActivator
public void setBundleContext(org.osgi.framework.BundleContext context)
setBundleContext
in class AbstractServiceDependentActivator
context
- the context to set.public void stop(org.osgi.framework.BundleContext bundleContext) throws java.lang.Exception
bundleContext
- BundleContext provided by OSGi frameworkjava.lang.Exception
- if something goes wrong during stopstatic UpdateService getUpdateService()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.