/**
 * pSHIELD
 * Service Discovery
 *
 @author Vincenzo Suraci
 * Department of System and Computer Science (DIS)
 * University of Rome "Sapienza"
 * Via Ariosto, 25
 * 00184, Rome, IT
 *
 * phone: +39 340 156 22 58
 * email: vincenzo.suraci@dis.uniroma1.it
 *
 * Created on 16-May-2007
 * Version 1.0
 
 */

package eu.artemis.shield.composition.compositionmanager.impl;
 
import org.osgi.framework.BundleContext;
import org.osgi.framework.BundleActivator; 
 
import eu.artemis.shield.composition.compositionmanager.ICompositionManager;

public class Activator implements BundleActivator 
{
  private static BundleContext bc = null;
  private CM cm = null
        
  public void start(BundleContext bcthrows Exception 
  {      
    Activator.bc = bc;
    cm = new CM(Activator.bc);    
    
    bc.registerService(ICompositionManager.class.getName(),cm,null);
    
    System.out.println("Composition Manager Started");
  }  
    
  public void stop(BundleContext bcthrows Exception 
  {              
    Activator.bc = null;
    cm.exit();
    
    System.out.println("Composition Manager Stopped");
  }     
  
}