mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-22 20:13:52 +00:00
Registered NotificationPreferences on UserStore to hold instances in
memory
This commit is contained in:
1 parent
ac2b198709
commit
051b5448d2
2 files changed
+4
-2
No files matched your search
@@ -21,6 +21,7 @@ import org.osgi.util.tracker.ServiceTrackerCustomizer;
|
||||
|
||||
import com.sap.sailing.domain.base.RaceDefinition;
|
||||
import com.sap.sailing.domain.base.Regatta;
|
||||
import com.sap.sailing.domain.common.preferences.NotificationPreferences;
|
||||
import com.sap.sailing.domain.common.tracking.impl.GPSFixImpl;
|
||||
import com.sap.sailing.domain.common.tracking.impl.GPSFixMovingImpl;
|
||||
import com.sap.sailing.domain.persistence.racelog.tracking.GPSFixMongoHandler;
|
||||
@@ -141,8 +142,8 @@ public class Activator implements BundleActivator {
|
||||
}
|
||||
|
||||
protected void registerPreferenceConvertersForUserStore(UserStore userStore) {
|
||||
// TODO implement for favorite settings
|
||||
// userStore.registerPreferenceConverter("TODO", new GenericJSONPreferenceConverter(null));
|
||||
userStore.registerPreferenceConverter(NotificationPreferences.PREF_NAME,
|
||||
new GenericJSONPreferenceConverter<NotificationPreferences>(NotificationPreferences::new));
|
||||
}
|
||||
|
||||
public void stop(BundleContext context) throws Exception {
|
||||
|
||||
Reference in new issue
Block a user