-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Introduce @RegisterForProxy
to register interfaces of dynamic proxies for native image
#35433
Comments
I think it makes sense. @zakkak WDYT? |
I agree. Not sure if the |
Not that we need to be extremely cautious about this one as ordering is important. We got bitten by that in the past. |
This was closed yesterday but I didn't spot response/change in code to accommodate for the ordering concern @gsmet mentions above is it no longer relevant? |
I think quarkus/core/deployment/src/main/java/io/quarkus/deployment/steps/RegisterForProxyBuildStep.java Lines 22 to 26 in 6bc64a0
Also, I added a note about interfaces order in docs: quarkus/docs/src/main/asciidoc/writing-native-applications-tips.adoc Lines 259 to 262 in 6bc64a0
|
For the record, I considered the note about interfaces order in docs would be enough for the concern @gsmet mentions, hence why I merged the PR |
assuming @gsmet is ok as this was merged so closing again. |
Description
Currently, the only option to register interfaces of dynamic proxies is to specify them in a configuration file (
proxy-config.json
):See: Configure Dynamic Proxies Manually
Implementation ideas
Introduce new annotation
@RegisterForProxy
that is similar to@RegisterForReflection
:Usage:
The text was updated successfully, but these errors were encountered: