为什么 GWT 不使用 gwt-dispatch?

发布于 2024-08-24 23:40:26 字数 433 浏览 21 评论 0原文

查看 gwt-dispatchGoogle 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 技术交流群。

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

发布评论

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

评论(1

一抹苦笑 2024-08-31 23:40:27

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.

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