Quarkus -CDI Bean Tree/Graph
我想知道是否有一种使用Quarkus来查看豆子如何被拉入的方法。例如树或图显示了bean分辨率的层次结构。我有一些我认为应该被视为“未使用”的豆子,但是它们仍然被吸引(我知道,因为缺少配置属性失败了)。
I was wondering if there was a way using Quarkus to see how beans are being pulled in. Like a tree or graph showing the hierarchy of bean resolution. I have a few beans that I think should be considered "unused", but they are still pulled in (I know because they fail with missing config properties).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
GitHub添加了增强问题: https://github.com/quarkub.com/quarkusio/quarkusio/quarkusio/quarkus/quarkus/sissues/26065 <26065 < /a>
pr: https://github.com/quarkusio/quarkusio/quarkus/quarkus/quarkus/pull/pull/pull/26153
将建造为2.11
Added enhancement issue to github: https://github.com/quarkusio/quarkus/issues/26065
PR: https://github.com/quarkusio/quarkus/pull/26153
Will be built to 2.11
这是一个有趣的主意。您是否愿意在这里提交新问题: https://github.com/quarkusio/quarkusio/quarkus/quarkus/sissues/issues/issues < /a>?
顺便说一句,“无用”的豆类不需要在任何地方注入。有其他规则适用。例如,
@Named
bean或声明观察者方法的bean永远不会被删除。此外,Quarkus扩展可以添加自己的规则。That's an interesting idea. Would you care to file a new issue here: https://github.com/quarkusio/quarkus/issues?
By the way, "unremovable" beans do not need to be injected anywhere. There are other rules that apply. For example, a
@Named
bean or a bean that declares an observer method is never removed. Furthermore, Quarkus extensions can add their own rules.