-
Notifications
You must be signed in to change notification settings - Fork 221
Working impl of HK2 dependency injection #493
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
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
795416d
Working impl of HK2 dependency injection
collado-mike 8361fd8
Add RealmScope and make EntityCache and PolarisMetaStoreManager realm…
collado-mike 578ff76
Remove dependency on HK2 from core module
collado-mike 7df1038
Fix EntityCache to work with RealmScope
collado-mike ab1e19d
fix TimedApplicationEventListener.class
collado-mike ccb710f
Add integration test to validate EntityCache in RealmScope
collado-mike e01a66a
Added comments on PolarisApplication startup
collado-mike 080113e
Update HK2 setup to use PolarisApplicationConfig as interface to serv…
collado-mike c4950ae
Fixed RealmEntityManagerFactory to use EntityCache provider
collado-mike 9763f0b
Update Dockerfile to use entrypoint and fix vended-credentials delega…
collado-mike 46abf02
fix spotless
collado-mike 89d2e2b
Update polaris-core/src/main/java/org/apache/polaris/core/context/Rea…
collado-mike 025c992
Removed Jackson type annotations from interfaces
collado-mike 9e09e03
Address PR comments
collado-mike 88b960e
Update build versions to include jakarta.inject
collado-mike 73ca1ed
Removed unnecessary Discoverable service files
collado-mike 2f60a7b
Fixes for rebase on main
collado-mike 43640c3
Update Jersey ServiceLocator to use bootstrapped locator as parent
collado-mike a3d6141
Addressed more PR comments
sfc-gh-mcollado 5b2182d
Update RealmScopeContext to use request-scoped RealmContext bean
sfc-gh-mcollado 25e130c
Update CDI impls to use @Identifier and replaced all setter injection…
sfc-gh-mcollado e7928fc
Fix helm test to match expectation
sfc-gh-mcollado 492f3bf
Revert PolarisStorageIntegrationProviderImpl back to service module
sfc-gh-mcollado 705221c
Fix missing project mentions in LICENSE
sfc-gh-mcollado 2587138
Fix lint issue in helm values
sfc-gh-mcollado 2190330
Add logic in build to merge multiple hks-locator files
sfc-gh-mcollado 30a404a
Merge branch 'main' into mcollado-hk2-di
collado-mike File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
...tence/eclipselink/src/main/resources/META-INF/services/io.dropwizard.jackson.Discoverable
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels like
PolarisEntityManager
should become a CDI bean as well and get the instances injected.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would effectively eliminate the need for
RealmEntityManagerFactory
- which is fine, but it means the callers need to be made either realm-scoped or request-scopedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Callers should be request-scoped, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I asked myself this question as well when doing the Quarkus port. But in the end I left
PolarisEntityManager
as a non-CDI class. There might be room for improvement around here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, the
PolarisEntityManager
is really just a factory for theResolver
now. That whole process is something I think should be a lower-level concern, hidden under the higher level interfaces. We've discussed a "unit of work" approach before and I think that would be a good layer to encapsulate theResolver
work. At that point, there is no need for thePolarisEntityManager
and theResolver
itself would be managed by the CDI container, but hidden from application logic.