EMMA Coverage Report (generated Sun Feb 05 10:43:15 CET 2012)
[all classes][de.uka.ipd.sdq.simucomframework.simulationdock]

COVERAGE SUMMARY FOR SOURCE FILE [Activator.java]

nameclass, %method, %block, %line, %
Activator.java0%   (0/1)0%   (0/3)0%   (0/39)0%   (0/10)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class Activator0%   (0/1)0%   (0/3)0%   (0/39)0%   (0/10)
Activator (): void 0%   (0/1)0%   (0/3)0%   (0/1)
start (BundleContext): void 0%   (0/1)0%   (0/29)0%   (0/6)
stop (BundleContext): void 0%   (0/1)0%   (0/7)0%   (0/3)

1package de.uka.ipd.sdq.simucomframework.simulationdock;
2 
3import java.util.Hashtable;
4 
5import org.osgi.framework.BundleActivator;
6import org.osgi.framework.BundleContext;
7import org.osgi.framework.ServiceRegistration;
8import org.osgi.util.tracker.ServiceTracker;
9 
10import ch.ethz.iks.r_osgi.RemoteOSGiService;
11 
12public class Activator implements BundleActivator {
13 
14        private SimulationDockService service;
15        private ServiceRegistration serviceRegistryEntry;
16        private ServiceTracker eventService;
17        
18        /*
19         * (non-Javadoc)
20         * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
21         */
22        public void start(BundleContext context) throws Exception {
23                Hashtable properties = new Hashtable();
24                if (System.getProperty("simucom.registerDock") != null)
25                        properties.put(RemoteOSGiService.R_OSGi_REGISTRATION, true);                
26                
27                service = new SimulationDockServiceImpl(context);
28                // register the service
29                serviceRegistryEntry = context.registerService(SimulationDockService.class.getName(), service, properties);        
30        }
31        
32        /*
33         * (non-Javadoc)
34         * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
35         */
36        public void stop(BundleContext context) throws Exception {
37                serviceRegistryEntry.unregister();
38                service = null;
39        }
40 
41}

[all classes][de.uka.ipd.sdq.simucomframework.simulationdock]
EMMA 2.0.9414 (unsupported private build) (C) Vladimir Roubtsov