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

Special treatment for ParamConverterProviders with multiple apps #3846

Merged
merged 5 commits into from
Feb 1, 2022

Conversation

spericas
Copy link
Member

@spericas spericas commented Jan 27, 2022

Special treatment for ParamConverterProviders. They are now all registered in the shared injection manager when more than one application is present. This ensures they are all properly installed; otherwise, Jersey will only consider those known after the first of the applications is registered. See issue #3796.

Signed-off-by: Santiago Pericasgeertsen santiago.pericasgeertsen@oracle.com

…tered in the shared injection manager when more than one application is present. This ensures they are all properly installed; otherwise, Jersey will only consider those known after the first of the applications is registered.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
@spericas spericas self-assigned this Jan 27, 2022
@spericas spericas added the jax-rs JAX-RS and Jersey related issues label Jan 27, 2022
@spericas spericas added this to the 2.4.2 milestone Jan 27, 2022
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
…ding ParamConverterProviders via class scanning.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
@spericas spericas changed the title WIP: Special treatment for ParamConverterProviders with multiple apps Special treatment for ParamConverterProviders with multiple apps Jan 28, 2022
@spericas spericas merged commit 7bbf84b into helidon-io:helidon-2.x Feb 1, 2022
spericas added a commit to spericas/helidon that referenced this pull request Feb 1, 2022
…idon-io#3846)

* Special treatment for ParamConverterProviders. They are now all registered in the shared injection manager when more than one application is present. This ensures they are all properly installed; otherwise, Jersey will only consider those known after the first of the applications is registered.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Updated copyright year.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* New approach that calls getClasses/getSingletons and does require finding ParamConverterProviders via class scanning.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Restore ExceptionMapper registration statement.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Fixed support for singletons and additional testing.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
spericas added a commit that referenced this pull request Feb 2, 2022
…ter) (#3857)

* Special treatment for ParamConverterProviders with multiple apps (#3846)

* Special treatment for ParamConverterProviders. They are now all registered in the shared injection manager when more than one application is present. This ensures they are all properly installed; otherwise, Jersey will only consider those known after the first of the applications is registered.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Updated copyright year.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* New approach that calls getClasses/getSingletons and does require finding ParamConverterProviders via class scanning.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Restore ExceptionMapper registration statement.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Fixed support for singletons and additional testing.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Fixed Helidon version after cherry-pick.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Fixed imports.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>

* Renamed javax packages in imports.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
jax-rs JAX-RS and Jersey related issues
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants