public class OsDependentActivator
extends java.lang.Object
implements org.osgi.framework.BundleActivator
Modifier and Type | Field and Description |
---|---|
static org.osgi.framework.BundleContext |
bundleContext
A currently valid bundle context.
|
static UIService |
uiService |
Constructor and Description |
---|
OsDependentActivator() |
Modifier and Type | Method and Description |
---|---|
static org.jitsi.service.configuration.ConfigurationService |
getConfigurationService()
Returns the ConfigurationService obtained from the bundle
context.
|
static GlobalStatusService |
getGlobalStatusService()
Returns the GlobalStatusService obtained from the bundle
context.
|
static org.jitsi.service.resources.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 BundleContext 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.
|
public static org.osgi.framework.BundleContext bundleContext
public static UIService uiService
public static org.jitsi.service.configuration.ConfigurationService getConfigurationService()
public static GlobalStatusService getGlobalStatusService()
public static org.jitsi.service.resources.ResourceManagementService getResources()
public static ShutdownService getShutdownService()
The returned reference to ShutdownService is not cached.
public static UIService getUIService()
public void start(org.osgi.framework.BundleContext bc) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
bc
- The execution context of the bundle being started.java.lang.Exception
public void stop(org.osgi.framework.BundleContext bc) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
bc
- The execution context of the bundle being stopped.java.lang.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.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.