/*
 * SIP Communicator, 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.osgi.framework.*;
import net.java.sip.communicator.service.configuration.*;
import net.java.sip.communicator.util.*;

/**
 *
 * @author Emil Ivov
 */
public class ConfigurationActivator
    implements BundleActivator
{
    private Logger logger = Logger.getLogger(ConfigurationServiceImpl.class);
    private ConfigurationServiceImpl impl = new ConfigurationServiceImpl();

    /**
     * Starts the configuration service
     *
     * @param bundleContext the BundleContext as provided from the osgi
     * framework.
     * @throws Exception if anything goes wrong
     */
    public void start(BundleContext bundleContext) throws Exception
    {
        try
        {
            logger.logEntry();

            logger.debug("Service Impl: " + getClass().getName() + " [  STARTED ]");

            impl.start();

            bundleContext.registerService( ConfigurationService.class.getName(),
                                           impl,
                                           new java.util.Hashtable() );

            logger.debug("Service Impl: " + getClass().getName() + " [REGISTERED]");
        }
        finally
        {
            logger.logExit();
        }
    }

    /**
     * Causes the configuration service to store the properties object and
     * unregisters the configuration servcice.
     *
     * @param bundlecontext BundleContext
     * @throws Exception
     */
    public void stop(BundleContext bundlecontext) throws Exception
    {
        try
        {
            logger.logEntry();
            logger.info("The ConfigurationService stop method has been called.");
        }
        finally
        {
            logger.logEntry();
        }
    }
}

@@ -871,66 +871,8 @@
   %7B%0A
-        try%0A        %7B%0A            logger.logEntry();%0A%0A    
     
@@ -953,28 +953,24 @@
 );%0A%0A        
-  
-  
 impl.start()
@@ -980,20 +980,16 @@
         
-   
- 
 bundleCo
@@ -1010,17 +1010,16 @@
 Service(
- 
 Configur
@@ -1090,24 +1090,14 @@
     
-   
-  
 impl,%0A
-     
     
@@ -1155,17 +1155,16 @@
 htable()
- 
 );%0A%0A    
@@ -1163,28 +1163,24 @@
 );%0A%0A        
- 
-   
 logger.debug
@@ -1244,84 +1244,8 @@
 %22);%0A
-        %7D%0A        finally%0A        %7B%0A            logger.logExit();%0A        %7D%0A
     
@@ -1536,34 +1536,8 @@
   %7B%0A
-        try%0A        %7B%0A    
     
@@ -1555,28 +1555,24 @@
 logEntry();%0A
-    
         logg
@@ -1641,85 +1641,8 @@
 %22);%0A
-        %7D%0A        finally%0A        %7B%0A            logger.logEntry();%0A        %7D%0A
     

remove superfluous logging