JBoss Seam:可以注入@Create方法吗?
我似乎无法在 @Create 方法中注入 Seam 组件。我在文档中找不到任何暗示这是不可能的,这将验证我是否犯了错误。
是否可以注入@Create内部?
干杯!
I cannot seem to be able to inject a Seam component inside the @Create method. I cannot find in the documentation any hint that this is not possible, which would verify whether I am making a mistake or not.
Is it possible to inject inside the @Create?
Cheers!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,你可以。它在构造函数中,您无法使用它。
你是对的,显然在
有时您需要一个简单的原型:)
Yes, you can. It's in the constructor that you can't use it.
And you're right, apparently in the seam documentation it's not written. But I think supporting injection is the main reason why the @Create annotations has been created.
Sometime a simple prototype is what you need :)