具有命令模式的 GWT RequestFactory
您当前是否将命令模式与 RequestFactory 结合使用?我想使用它,但由于 RequestFactory 不允许继承,我不知道该怎么做。
如果有人经历过这个问题并找到了实现它的方法,我很高兴知道。
谢谢你!
Are you currently using the Command Pattern in combination with RequestFactory? I'd like to use it but since RequestFactory doesn't allow inheritance, I'm not sure how to do it.
If anyone has been through this issue and found a way to implement it, I'd be glad to know.
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不能百分百确定我能正确解释它,但我认为你尝试混合橙子和苹果。
RequestFactory 框架是一个非常聪明的东西,它做很多事情都做得很好而且很聪明,但是你必须接受它提供的思维和设计方式。学习它,你会对结果感到满意。这似乎是一个复杂的概念,但它是值得的。不要费力地将其装入“命令模式”的框中。由于您提供的有关您试图实现的目标的信息很少,因此我无法为您的案例提供操作方法。对不起。
问一些更具体的问题,我相信您会在 StackOverflow 上得到答案。
祝你好运!
I am not 100% sure that I can explain it right but I think that you try to mix oranges and apples.
RequestFactory framework is a very smart thing and it does a lot of things well and clever BUT you got to embrace the way of thinking and design it offers. Learn it and you will pleased by results. It seems like a complex concept but it worth it. Do not fight to fit it in to the box of "Command Pattern". As you give little information on what you try to achieve I can not give you a HowTo for your case. Sorry.
Ask some more concrete question and I am sure you will get an answer on StackOverflow.
Good Luck!