/* * 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.browserlauncher; import net.java.sip.communicator.service.browserlauncher.*; import net.java.sip.communicator.util.*; import org.osgi.framework.*; /** * Implements BundleActivator for the browserlauncher bundle. * * @author Yana Stamcheva * @author Lubomir Marinov */ public class BrowserLauncherActivator implements BundleActivator { /** * The Logger instance used by the * BrowserLauncherActivator class and its instances for logging * output. */ private static final Logger logger = Logger.getLogger(BrowserLauncherActivator.class); /** * Initialize and start the service. * * @param bundleContext the BundleContext * @throws Exception if initializing and starting this service fails */ public void start(BundleContext bundleContext) throws Exception { //Create the browser launcher service BrowserLauncherService browserLauncher = new BrowserLauncherImpl(); if (logger.isInfoEnabled()) logger.info("Browser Launcher Service STARTED"); bundleContext .registerService( BrowserLauncherService.class.getName(), browserLauncher, null); if (logger.isInfoEnabled()) logger.info("Browser Launcher Service REGISTERED"); } /** * Stops this bundle. * * @param bundleContext the BundleContext * @throws Exception if the stop operation goes wrong */ public void stop(BundleContext bundleContext) throws Exception { } }