quarkusio/quarkus

Make the RegisterForReflection annotation more flexible for Native

Open

#3883 aperta il 5 set 2019

Vedi su GitHub
 (19 commenti) (0 reazioni) (0 assegnatari)Java (2464 fork)batch import
area/native-imagegood first issuekind/enhancement

Metriche repository

Star
 (12.967 star)
Metriche merge PR
 (Merge medio 6g 4h) (325 PR mergiate in 30 g)

Descrizione

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)

Guida contributor