Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extract PreferencesBasedStorageHandler from StorageHandlerImpl #93

Conversation

sclassen
Copy link
Contributor

the abstract class PreferencesBasedStorageHandler can easely be subclassed by a client to use another means than Gson for serialization

PR Checklist

  • There is an issue for the bug/feature this PR is for. To avoid wasting your time, it's best to open an issue first and wait for approval before working on it.
  • The code follows the Google Java Style Guide.
  • JavaDoc is added / changed for public methods.
  • An example of the new feature is added to the demos.
  • Documentation of the feature is included in the README.
  • Tests for the changes are included.

What is the current behavior?

behavior has not changed

What is the new behavior?

behavior has not changed

Fixes/Implements/Closes #[Issue Number].

Breaking Change:

no breaking change. New class added though

the abstract class PreferencesBasedStorageHandler can easely be subclassed by a client to use another means than Gson for serialization
@sclassen
Copy link
Contributor Author

Maybe this change is a bit far fetched. But it nicely separates the usage of GSON for serialization/deserialization from the usage of the java Preferences API.

Copy link
Contributor

@martinfrancois martinfrancois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, although there is no report of someone needing such a feature at the moment, I could see maybe some special objects not being properly serialized by default by GSON, which would require some kind of customization, which would be made possible by this PR. I like the idea!
Just added a small comment, the rest looks good!

Copy link
Contributor

@martinfrancois martinfrancois left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thanks!

@martinfrancois martinfrancois merged commit 4d3d289 into dlsc-software-consulting-gmbh:master Aug 25, 2019
@sclassen sclassen deleted the splitStorageHandlerImpl branch August 25, 2019 18:23
@martinfrancois martinfrancois added the enhancement New feature or request label Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants