Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.pluginmanager
Class PluginManagerActivator

java.lang.Object
  extended by net.java.sip.communicator.plugin.pluginmanager.PluginManagerActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator

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

The BundleActivator of the PluginManager plugin.

Author:
Yana Stamcheva

Field Summary
static org.osgi.framework.BundleContext bundleContext
          The bundle context.
 
Constructor Summary
PluginManagerActivator()
           
 
Method Summary
static ConfigurationService getConfigurationService()
          Returns the ConfigurationService obtained from the bundle context.
static UIService getUIService()
          Returns the UIService obtained from the bundle context.
static boolean isSystemBundle(org.osgi.framework.Bundle bundle)
          Determines whether bundle is system or not.
 void start(org.osgi.framework.BundleContext bc)
          Starts this bundle and adds the PluginManagerConfigForm contained in it to the configuration window obtained from the UIService.
 void stop(org.osgi.framework.BundleContext bc)
          Stops this bundles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bundleContext

public static org.osgi.framework.BundleContext bundleContext
The bundle context.

Constructor Detail

PluginManagerActivator

public PluginManagerActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bc)
           throws Exception
Starts this bundle and adds the PluginManagerConfigForm contained in it to the configuration window obtained from the UIService.

Specified by:
start in interface org.osgi.framework.BundleActivator
Parameters:
bc - the BundleContext
Throws:
Exception - if one of the operation executed in the start method fails

stop

public void stop(org.osgi.framework.BundleContext bc)
          throws Exception
Stops this bundles.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bc - the BundleContext
Throws:
Exception - if one of the operation executed in the stop method fails

getUIService

public static UIService getUIService()
Returns the UIService obtained from the bundle context.

Returns:
the UIService obtained from the bundle context

getConfigurationService

public static ConfigurationService getConfigurationService()
Returns the ConfigurationService obtained from the bundle context.

Returns:
the ConfigurationService obtained from the bundle context

isSystemBundle

public static boolean isSystemBundle(org.osgi.framework.Bundle bundle)
Determines whether bundle is system or not. We consider system bundles those that we have explicitly marked as such with the System-Bundle manifest property or those that belong to the Apache framework itself.

Parameters:
bundle - the bundle that we need to determine as system or not.
Returns:
true if bundle is a system bundle and false otherwise.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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