Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.plugin.chatconfig
Class ChatConfigActivator

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

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

The chat configuration form activator.

Author:
Purvesh Sahoo

Field Summary
static org.osgi.framework.BundleContext bundleContext
          The currently valid bundle context.
 
Constructor Summary
ChatConfigActivator()
           
 
Method Summary
static Component createConfigSectionComponent(String labelText)
          Creates a config section label from the given text.
static ConfigurationService getConfigurationService()
          Returns the ConfigurationService obtained from the bundle context.
static Map<String,ReplacementService> getReplacementSources()
          Returns all ReplacementServices obtained from the bundle context.
static ResourceManagementService getResources()
          Gets the service giving access to all application resources.
 void start(org.osgi.framework.BundleContext bc)
          Starts this bundle.
 void stop(org.osgi.framework.BundleContext bc)
          Stops this bundle.
 
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 currently valid bundle context.

Constructor Detail

ChatConfigActivator

public ChatConfigActivator()
Method Detail

start

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

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
Stops this bundle.

Specified by:
stop in interface org.osgi.framework.BundleActivator
Parameters:
bc - the bundle context
Throws:
Exception - if something goes wrong

getResources

public static ResourceManagementService getResources()
Gets the service giving access to all application resources.

Returns:
the service giving access to all application resources.

createConfigSectionComponent

public static Component createConfigSectionComponent(String labelText)
Creates a config section label from the given text.

Parameters:
labelText - the text of the label.
Returns:
the created label

getConfigurationService

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

Returns:
the ConfigurationService obtained from the bundle context

getReplacementSources

public static Map<String,ReplacementService> getReplacementSources()
Returns all ReplacementServices obtained from the bundle context.

Returns:
all ReplacementService implementation obtained from the bundle context

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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