Quarkus -CDI Bean Tree/Graph

发布于 2025-02-01 02:48:31 字数 108 浏览 3 评论 0原文

我想知道是否有一种使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

情场扛把子 2025-02-08 02:48:31

这是一个有趣的主意。您是否愿意在这里提交新问题: 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文