Reflection scan for annotation in native image #29859
-
I try to use library https://github.com/ronmamo/reflections in my quarkus app. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Native mode has limitations - one of them is arbitrary open ended reflection. Look at https://quarkus.io/guides/writing-native-applications-tips#registering-for-reflection how you might be able to have it working. In general though we recommend doing such scanning at buildtime as an extensions rather than do it via operations that only works in jvm mode. |
Beta Was this translation helpful? Give feedback.
Native mode has limitations - one of them is arbitrary open ended reflection.
Look at https://quarkus.io/guides/writing-native-applications-tips#registering-for-reflection how you might be able to have it working.
In general though we recommend doing such scanning at buildtime as an extensions rather than do it via operations that only works in jvm mode.