service trackers need to be opened to enable waiting for a service

This commit is contained in:
Axel Uhl committed 2014-10-05 12:05:19 +02:00
1 parent 1260e75b4b
commit 64604322f8
2 files changed
+2

No files matched your search

@@ -24,6 +24,7 @@ public class Activator implements BundleActivator {
public void start(BundleContext context) throws Exception {
Activator.context = context;
final ServiceTracker<SecurityService, SecurityService> tracker = new ServiceTracker<>(context, SecurityService.class, /* customizer */ null);
tracker.open();
new Thread("ServiceTracker in bundle com.sap.sailing.gwt.ui waiting for SecurityService") {
@Override
public void run() {
@@ -64,6 +64,7 @@ public class Activator implements BundleActivator {
private void waitForUserStoreService(BundleContext bundleContext) {
context = bundleContext;
final ServiceTracker<UserStore, UserStore> tracker = new ServiceTracker<>(bundleContext, UserStore.class, /* customizer */ null);
tracker.open();
new Thread("ServiceTracker waiting for UserStore service") {
@Override
public void run() {