quarkusio/quarkus

Make the RegisterForReflection annotation more flexible for Native

Open

#3,883 创建于 2019年9月5日

在 GitHub 查看
 (19 评论) (0 反应) (0 负责人)Java (2,464 fork)batch import
area/native-imagegood first issuekind/enhancement

仓库指标

Star
 (12,967 star)
PR 合并指标
 (平均合并 6天 4小时) (30 天内合并 325 个 PR)

描述

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)

贡献者指南