/**
* Generated by Dragonfly SDK
*
*/
package motherbugtweetntwitch.servicetracker;
import motherbugtweetntwitch.app.MotherBUGTweetNTwitchApp;
import org.osgi.framework.BundleContext;
import com.buglabs.application.AbstractServiceTracker;
/**
* Service tracker for the BugApp Bundle;
*
*/
public class MotherBUGTweetNTwitchServiceTracker extends AbstractServiceTracker {
private BundleContext context;
public MotherBUGTweetNTwitchServiceTracker(BundleContext context) {
super(context);
this.context = context;
}
/**
* Determines if the application can start.
*/
public boolean canStart() {
return super.canStart();
}
/**
* If canStart returns true
* this method is called to start the application.
* Place your fun logic here.
*/
public void doStart() {
System.out.println("MotherBUGTweetNTwitchServiceTracker: start");
MotherBUGTweetNTwitchApp app = new MotherBUGTweetNTwitchApp(this);
}
/**
* Called when a service that this application depends is unregistered.
*/
public void doStop() {
System.out.println("MotherBUGTweetNTwitchServiceTracker: stop");
}
/**
* Allows the user to set the service dependencies by
* adding them to services list returned by getServices().
* i.e.nl getServices().add(MyService.class.getName());
*/
public void initServices() {
getServices().add("com.buglabs.bug.base.pub.IBUGBaseControl");
getServices().add("com.buglabs.bug.base.pub.IToneGenerator");
getServices().add("com.buglabs.bug.module.camera.pub.ICameraDevice");
getServices().add("com.buglabs.device.IButtonEventProvider");
getServices().add("com.buglabs.services.ws.PublicWSAdmin");
getServices().add("org.osgi.service.log.LogService");
getServices().add("com.buglabs.bug.module.motion.pub.IMotionSubject");
getServices().add("com.buglabs.bug.base.pub.ITimeProvider");
}
public void getIBUGBaseControl(){
}
}