为什么 GWT 不使用 gwt-dispatch?
查看 gwt-dispatch 和 Google Wave I/O 演示(最佳实践) (视频),我想知道为什么官方 GWT 版本( 2.0) 的 RPC 调用不使用调度(即命令模式)。有谁知道吗?
After looking into gwt-dispatch and the Google Wave I/O presentation (Best practices) (video here), I'm wondering why the official GWT release (2.0) doesn't use dispatch (ie. the command pattern) for it's RPC calls. Does anyone know?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
GWT 提供了调用服务方法的基本方式。您可以结合使用不同的模式。因此,如果您只想要一个非常简单的服务,也许有一些只接受整数并返回字符串的方法 - 您可以这样做。如果您想要更多,您可以轻松添加 gwt-dispatch 或其他内容。
这样,GWT 核心就变得更简单、更清晰,并且对于那些不需要该功能的人来说,代码大小可以保持更小。这是一种模块化方法。
GWT offers a basic way for calling service methods. You can use different patterns in conjunction with that. So if you just want a very simple service, with maybe a few methods that just take an Integer, and return a String - you can do that. If you want more, you can add gwt-dispatch or also something else easily.
This way, the GWT core stays simpler and cleaner, and the code size can be kept smaller for those who don't need that functionality. It's a modular approach.