JSR 330 和 Guice 互操作性
有人有 JSR 330 与 Guice 的经验吗?据我所知,Guice 不是 JSR 330 的实现,但如果它类似于 Hibernate 和 JPA,那么该实现支持 API 中没有的一堆附加功能。由于我已经在使用 GWT-Dispatch、Warp-persist guice-servet 等,通过迁移到支持 JSR 330 的 EJB 容器会有什么好处吗?
Does anybody have experience with JSR 330 vs Guice? From what I gather Guice is not an implementation of JSR 330 but if it is anything like Hibernate and JPA the implementation supports a bunch of additional functionality no in the API. Since I am already using GWT-Dispatch, Warp-persist guice-serlvet, etc would there be anything gained by moving to an EJB container supporting JSR 330?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Guice 2.0 不支持 JSR 330,但 Guice SVN 包含一个与 JSR 330 兼容的注入器。
Guice 2.0 does not support JSR 330, but Guice SVN includes a JSR 330-compatible injector.
引用官方公告邮件,仅供参考:Guice SVN 现已支持 JSR-330:
这封邮件已于 2009 年 9 月 7 日发送。尘埃落定是否尘埃落定由您来决定,但我会再等一会儿并坚持使用建议的 guice 注释。
Quoting the official announcement mail, FYI: JSR-330 support now in Guice SVN:
This mail has been sent September 7, 2009. It's up to you to decide if the dust has settled but I'd wait a bit more and stick with the guice annotations as recommended.