use Class object instead of class name to create service tracker

Change-Id: I3ed24acc8547391111e6397f80c5d750efbdf68f
This commit is contained in:
Axel Uhl
2017-01-09 11:54:30 +01:00
parent 1af09208f6
commit a09823d20a
@@ -3327,7 +3327,7 @@ public class RacingEventServiceImpl implements RacingEventService, ClearStateTes
result = Collections.singleton((WindTrackerFactory) ExpeditionWindTrackerFactory.getInstance());
} else {
ServiceTracker<WindTrackerFactory, WindTrackerFactory> tracker = new ServiceTracker<WindTrackerFactory, WindTrackerFactory>(
bundleContext, WindTrackerFactory.class.getName(), null);
bundleContext, WindTrackerFactory.class, null);
tracker.open();
result = new HashSet<>();
for (WindTrackerFactory factory : tracker.getServices(new WindTrackerFactory[0])) {