Skip to content

HDDS-15934. Remove usage of internal jersey internal InjectionManager - #10853

Merged
chungen0126 merged 1 commit into
apache:masterfrom
echonesis:HDDS-15934
Jul 27, 2026
Merged

HDDS-15934. Remove usage of internal jersey internal InjectionManager#10853
chungen0126 merged 1 commit into
apache:masterfrom
echonesis:HDDS-15934

Conversation

@echonesis

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Recon directly uses Jersey's internal InjectionManager API to obtain the HK2 ServiceLocator when initializing the Guice-to-HK2 bridge. Depending on an internal Jersey API makes this integration sensitive to Jersey implementation changes.

This PR updates GuiceResourceConfig to receive the ServiceLocator and ServletContext through standard dependency injection. The Guice injector is then bridged to HK2 during resource configuration initialization, without registering a container lifecycle listener or accessing Jersey's internal injection API.

The explicit jersey-common dependency is also removed because it is no longer required.

Generated-by: Codex (GPT-5)

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-15934

How was this patch tested?

GitHub Actions CI: https://github.com/echonesis/ozone/actions/runs/30013948598

@chungen0126 chungen0126 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1 LGTM

@chungen0126
chungen0126 merged commit c1875b8 into apache:master Jul 27, 2026
45 checks passed
@chungen0126

Copy link
Copy Markdown
Contributor

Merged. Thanks @echonesis for working on this.

@echonesis

Copy link
Copy Markdown
Contributor Author

Thanks @chungen0126 for the review and merge.

@echonesis
echonesis deleted the HDDS-15934 branch July 27, 2026 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants