quarkusio/quarkus

Make the RegisterForReflection annotation more flexible for Native

Open

#3 883 ouverte le 5 sept. 2019

Voir sur GitHub
 (19 commentaires) (0 réactions) (0 assignés)Java (2 464 forks)batch import
area/native-imagegood first issuekind/enhancement

Métriques du dépôt

Stars
 (12 967 stars)
Métriques de merge PR
 (Merge moyen 6j 4h) (325 PRs mergées en 30 j)

Description

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)

Guide contributeur