quarkusio/quarkus
Auf GitHub ansehenMake the RegisterForReflection annotation more flexible for Native
Open
#3.883 geöffnet am 5. Sept. 2019
area/native-imagegood first issuekind/enhancement
Repository-Metriken
- Stars
- (12.967 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 6T 4h) (325 gemergte PRs in 30 T)
Beschreibung
Description
Would be nice have a way to tell to @RegisterForReflection annotation what I want instead of using the reflection-config.json file as stated here https://quarkus.io/guides/writing-native-applications-tips.
Currently, If I want only public methods to use reflection, I need to create the file below:
reflection-config.json:
[
{
"name" : "something.test.resource",
"allPublicMethods" : true
}
]
Implementation ideas:
@RegisterForReflection(allPublicMethods=true)