public class GeneralConfigPluginActivator extends AbstractServiceDependentActivator implements org.osgi.framework.ServiceListener
Modifier and Type | Field and Description |
---|---|
static org.osgi.framework.BundleContext |
bundleContext
The bundle context.
|
Constructor and Description |
---|
GeneralConfigPluginActivator() |
Modifier and Type | Method and Description |
---|---|
static javax.swing.JPanel |
createConfigSectionComponent(java.lang.String labelText)
Creates a config section label from the given text.
|
static org.jitsi.service.configuration.ConfigurationService |
getConfigurationService()
Returns the ConfigurationService obtained from the bundle
context.
|
java.lang.Class<?> |
getDependentServiceClass()
The dependent class.
|
static MessageHistoryService |
getMessageHistoryService()
Gets the service giving access to message history.
|
static ProtocolProviderService[] |
getProtocolProviders()
Returns an array of all available protocol providers.
|
static org.jitsi.service.resources.ResourceManagementService |
getResources()
Gets the service giving access to all application resources.
|
(package private) static SystrayService |
getSystrayService()
Returns the SystrayService obtained from the bundle
context.
|
(package private) static UIService |
getUIService()
Returns the UIService.
|
void |
serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
Implements ServiceListener#serviceChanged(ServiceEvent).
|
void |
setBundleContext(org.osgi.framework.BundleContext context)
The bundle context to use.
|
void |
start(java.lang.Object dependentService)
Starts this bundle.
|
void |
stop(org.osgi.framework.BundleContext bc)
Stops this bundle.
|
start
public static org.osgi.framework.BundleContext bundleContext
public void start(java.lang.Object dependentService)
start
in class AbstractServiceDependentActivator
dependentService
- the service 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 bc) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
bc
- the bundle contextjava.lang.Exception
- if something goes wrongpublic static org.jitsi.service.configuration.ConfigurationService getConfigurationService()
static SystrayService getSystrayService()
static UIService getUIService()
public void serviceChanged(org.osgi.framework.ServiceEvent serviceEvent)
serviceChanged
in interface org.osgi.framework.ServiceListener
serviceEvent
- the ServiceEvent that notified uspublic static ProtocolProviderService[] getProtocolProviders()
public static org.jitsi.service.resources.ResourceManagementService getResources()
public static MessageHistoryService getMessageHistoryService()
public static javax.swing.JPanel createConfigSectionComponent(java.lang.String labelText)
labelText
- the text of the label.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.