public void start(BundleContext bc) throws Exception {
tracker = new ServiceTracker(bc, DisplayService.class.getName(), null) {
public Object addingService(ServiceReference reference) {
Object svc = super.addingService(reference);
if (svc instanceof DisplayService) {
DisplayService d = (DisplayService) svc;
System.out.println("Adding display: " + d.getID() + " (" + d + ")");
displays.put(d, d.getID());
}
return svc;
}
public void removedService(ServiceReference reference, Object service) {