This Guice module allows JavaFX applications to bind FX Properties to Preferences and store and retrieve it from the OS-specific registry. It's inspired by the fx-guice (https://github.com/cathive/fx-guice) preferences injection.
sample usage:
@PreferenceContext
PreferenceBinder persist;
@FXML
TextField userName;
public Demo() {
// store and retrieve user name from OS registry
persist.bind(userName.textProperty(), "user.name");
}
void close() {
persist.flush();
}