Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.contactsourceconfig
Class ContactSourceConfigActivator

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

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

Author:
Yana Stamcheva

Field Summary
static org.osgi.framework.BundleContext bundleContext
          The BundleContext of the ContactSourceConfigActivator.
 
Constructor Summary
ContactSourceConfigActivator()
           
 
Method Summary
static ConfigurationService getConfigurationService()
          Returns a reference to the ConfigurationService implementation currently registered in the bundle context or null if no such implementation was found.
static ResourceManagementService getResources()
          Returns a reference to the ResourceManagementService implementation currently registered in the bundle context or null if no such implementation was found.
static UIService getUIService()
          Gets the UIService instance registered in the BundleContext of the SecurityConfigActivator.
 void start(org.osgi.framework.BundleContext bc)
          Starts this plugin.
 void stop(org.osgi.framework.BundleContext bc)
          Invoked when this bundle is stopped.
 
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 BundleContext of the ContactSourceConfigActivator.

Constructor Detail

ContactSourceConfigActivator

public ContactSourceConfigActivator()
Method Detail

start

public void start(org.osgi.framework.BundleContext bc)
           throws Exception
Starts this plugin.

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

stop

public void stop(org.osgi.framework.BundleContext bc)
          throws Exception
Invoked when this bundle is stopped.

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

getResources

public static ResourceManagementService getResources()
Returns a reference to the ResourceManagementService implementation currently registered in the bundle context or null if no such implementation was found.

Returns:
a currently valid implementation of the ResourceManagementService

getConfigurationService

public static ConfigurationService getConfigurationService()
Returns a reference to the ConfigurationService implementation currently registered in the bundle context or null if no such implementation was found.

Returns:
a currently valid implementation of the ConfigurationService.

getUIService

public static UIService getUIService()
Gets the UIService instance registered in the BundleContext of the SecurityConfigActivator.

Returns:
the UIService instance registered in the BundleContext of the SecurityConfigActivator

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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