mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-17 01:31:01 +00:00
service trackers need to be opened to enable waiting for a service
This commit is contained in:
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() {
|
||||
|
||||
Reference in new issue
Block a user