基于GWT/GIN/GUICE的框架扩展性
我希望我的问题不是很笼统。
我在 gwt/gxt 中创建了一个框架,它可以帮助开发人员使用一组预定义的小部件非常快速地创建 Web 应用程序。
现在,这些天他们想要拥有与特定客户非常相关的新功能,我发现扩展我的框架非常困难。我在客户端使用 MVP 模式,在服务器端使用 GIN 和 GUICE。需要扩展的客户端组件也在服务器上有相关的服务来加载其数据。
我已经考虑过创建新的 guice 模块并“绑定”(不知道这是否是正确的词)现有的模块,但开发人员必须重写完整的模块或其服务。
有人已经有一些在客户端和服务器端使用 gwt 设计框架的经验了吗?如果是,我怎样才能为我的框架提供简单的可能性来扩展客户特定的东西。也许有一些不错的模式可供我使用。
多谢
I hope my question is not to generic.
I created a framework in gwt/gxt which helps developer to create very quick a web application with a set of pre definied widgets.
Now over the days they want to have new functionality which are very related to a specific customer and I found it very difficult to extend my framework. I am using the MVP pattern on client side with GIN and GUICE on server side. The client components which needs to be extended also have related services on the server to load their data.
I already thought about creating new guice modules and over"bind"(dont know if this is the right word) the existing ones but than the developer has to rewrite the complete module or its service.
Does somebody already has some experiences with designing a framework with gwt on client and server side? If yes how can I provide my framework with easy possiblities to extend with customer specific stuff. Maybe there are some nice patterns out there which I could use.
Thanks a lot
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我理解你的问题,你可以做一些类似于我现在的想法的事情。
在您的框架中,您可以提供一个包含所有模块的模块,如下所示:
然后,在您的应用程序中,当您创建注入器或在 servlet 模块中时,您可以执行
install(MyAPI.getMyAPIModule()) ;
它会起作用If I understand right you question, you can do something similar to this idea I got now.
In your framework, you could provide a module with all your modules, like this:
Then, in your app, when you create the injector, or in your servlet module, you can do a
install(MyAPI.getMyAPIModule());
and it will work