Seam Solder 的 @Requires 注释应该接收字符串还是类?
Seam Solder 文档 说@Requires
注解需要一个 Class
对象数组作为参数。然而,当我尝试使用它时(来自 Seam Solder 3.0.0.Final API 工件 - 不是 impl 工件,值得注意)Eclipse 通知我注释需要一个字符串数组。我还发现了一些源代码表示注释需要字符串。
那么,这是焊接文档中的错误吗?另外,注释的预期字符串是什么? (我认为这是完全限定的类型名称,但我想确认一下,无论如何,在网络上有这样的引用会很好)。
Seam Solder documentation says that the @Requires
annotation requires an array of Class
objects as a parameter. However, when I try to use it (from Seam Solder 3.0.0.Final API artifact - not the impl artifact, it is worth noting) Eclipse informs me the annotation expects an array of strings. Some source code I have found also indicates the annotation requires strings.
So, is this a bug in Solder documentation? Also, what is the expected string for the annotation? (I suppose it is the fully qualified type name, but I would like to make it sure and, anyway, it would be good to have such a reference in the web).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看源代码 表明 Eclipse 是正确的。不幸的是,Seam 3 文档并不总是正确的。
提交 JIRA 问题或发起拉取请求将是完美的开源社区态度......
Peeking in the source code reveals that Eclipse is right. The Seam 3 documentation is not always correct, unfortunately.
Filing a JIRA issue or starting a pull request would be the perfect open source community attitude...