EclipseStoreContext - a better way to use ES? #379
hrstoyanov
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to share EclipseStoreContext. The benefits it brings are:
You pass around an EclipseStoreContext instance as method argument, or inject it in Spring/Microprofile (some supporting code is needed for that). But here I will show you how to use it with modern Java scoped values:
A few things I am too lazy/busy to do:
I believe the code is thread safe. NEVER PERSIT THE CONTEXT ITSELF!
Beta Was this translation helpful? Give feedback.
All reactions