The issue is that I have to maintain a DI configuration file. If I have say 50 rpc services, then that means I'll have a DI file with 50 lines of DI injection.
Cheers, Henry On Jan 24, 2:38 am, olivier nouguier <olivier.nougu...@gmail.com> wrote: > hi, > I can't figure out what you consider an issue in using a DI dispatch. > Just to understand :) > > > > On Sun, Jan 24, 2010 at 8:15 AM, Henry <q8e...@gmail.com> wrote: > > I took a quick look at > >http://code.google.com/p/orcades-gwt-spring/wiki/orcadesGWTSpringHandler > > Not bad, but it still needs managed beans which is managed via a .xml > > file or annotations. > > I'm suggesting something that doesn't even need that ... > > the caveat is that my soln uses a name-design pattern (which might not > > be a caveat) > > > Cheers, > > Henry > > > On Jan 23, 2:16 am, olivier nouguier <olivier.nougu...@gmail.com> > > wrote: > > > Hi > > > It's quite easy to implement a GWT dispatcher. At least with spring, > > then > > > use autoscan feature: > > >http://code.google.com/p/orcades-gwt-spring/wiki/orcadesGWTSpringHandler > > > HIH > > > > On Fri, Jan 22, 2010 at 7:13 PM, Henry <q8e...@gmail.com> wrote: > > > > So far, > > > > > I found there are a few ways to redirect your serviceimpl, namley > > > > 1) logic in web.xml > > > > 2) gwt-dispatch > > > > 3) various framework plugins (for struts, jsf) > > > > > But each of these solns above require you to edit a config file (or > > > > modify a java file with guice) > > > > everytime you add a new serviceimpl. > > > > Would it be possible to have an auto-config, so that if you follow the > > > > standard naming > > > > convention of > > > > XXXService.java > > > > XXXServiceAsync.java > > > > XXXServiceImpl.java > > > > > that you won't have to add any more configurations. > > > > i.e. > > > > the service endpoint is something like > > > > /gwt/GwtNameDispatcher > > > > > and GwtNameDispatcher is written so that it invokes the respective > > > > ServiceImpl > > > > w/o reading any configs files. GwtNameDispatcher knows which > > > > ServiceImpl to invoke > > > > based upon what Service object was passed in the GWT-RPC post param. > > > > The caveat is that you must follow the > > > > XXXService.java > > > > XXXServiceAsync.java > > > > XXXServiceImpl.java > > > > pattern, but if I write such a GwtNameDispatcher beast, would this be > > > > useful > > > > to the GWT community? > > > > Is there a better soln? > > > > > Cheers, > > > > Henry > > > > > -- > > > > You received this message because you are subscribed to the Google > > Groups > > > > "Google Web Toolkit" group. > > > > To post to this group, send email to > > google-web-tool...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > > <google-web-toolkit%2bunsubscr...@googlegroups.com<google-web-toolkit%252bunsubscr...@googlegroups.com> > > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > > > -- > > > A coward is incapable of exhibiting love; it is the prerogative of the > > > brave. > > > -- > > > Mohandas Gandhi > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > A coward is incapable of exhibiting love; it is the prerogative of the > brave. > -- > Mohandas Gandhi -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.