package org.inaetics.dronessimulator.drone.droneinit;

import org.apache.felix.dm.DependencyActivatorBase;
import org.apache.felix.dm.DependencyManager;
import org.inaetics.dronessimulator.discovery.api.Discoverer;
import org.osgi.framework.BundleContext;

public class Activator extends DependencyActivatorBase {
    @Override
    public void init(BundleContext bundleContext, DependencyManager dependencyManager) throws Exception {
        dependencyManager.add(createComponent()
                .setInterface(DroneInit.class.getName(), null)
                .setImplementation(DroneInit.class)
                .add(createServiceDependency()
                        .setService(Discoverer.class)
                        .setRequired(true)
                )
                .setCallbacks("init", "start", "stop", "destroy")
        );
    }
}
@@ -204,24 +204,94 @@
 Discoverer;%0A
+import org.inaetics.dronessimulator.pubsub.api.subscriber.Subscriber;%0A
 import org.o
@@ -707,16 +707,178 @@
 dency()%0A
+                        .setService(Subscriber.class)%0A                        .setRequired(true)%0A                )%0A                .add(createServiceDependency()%0A
         

Add Subscriber dependency to droninit