Suppose I am working on exposing some of my server classes to a GWT application, but some parts could be made much better using GWT-specific components (e.g. JSNI).
What are some methods for doing this without being too hacks?
For example, I know the use of the subpacket and the use of the <super-source/> , but this requires the package names to be different, which makes eclipse complain. A common solution in the community is then to tell eclipse to use this as the source folder, but then the eclipse complains that there are two classes with the same name.
Ideally, there is only a way to store everything in one source tree and actually have different classes that use alternative implementations. It will be like a more OO approach.
I would like to add a suffix to a class like _gwt that does this automatically, and I know that I could write a script to do this conversion, but that certainly means kludge.
I was considering using the Google GIN / GUICE libraries for my projects in general, and I think there might be some solution, but I'm not sure, because I did not study it thoroughly.
What solutions have you tried to use in the past in GWT projects?
Kevin dolan
source share