/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.configuration;
import org.jitsi.service.configuration.*;
import org.jitsi.service.libjitsi.*;
import org.osgi.framework.*;
/**
* @author Emil Ivov
* @author Lyubomir Marinov
*/
public class ConfigurationActivator
implements BundleActivator
{
/**
* Starts the configuration service
*
* @param bundleContext the BundleContext as provided by the OSGi
* framework.
* @throws Exception if anything goes wrong
*/
public void start(BundleContext bundleContext)
throws Exception
{
ConfigurationService configurationService
= LibJitsi.getConfigurationService();
if (configurationService != null)
{
bundleContext.registerService(
ConfigurationService.class.getName(),
configurationService,
null);
}
}
/**
* Causes the configuration service to store the properties object and
* unregisters the configuration service.
*
* @param bundleContext BundleContext
* @throws Exception if anything goes wrong while storing the properties
* managed by the ConfigurationService implementation provided by
* this bundle and while unregistering the service in question
*/
public void stop(BundleContext bundleContext)
throws Exception
{
}
}