Skip to content

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

Open
echonesis wants to merge 1 commit into
apache:masterfrom
echonesis:HDDS-15934
Open

HDDS-15934. Remove usage of internal jersey internal InjectionManager#10853
echonesis wants to merge 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

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.

1 participant