I need to bridge a fairly procedural Javascript library consisting of some .js files containing functions to call from GWT.
There's already a nice utility called GWT-Exporter that does exactly the opposite (http://code.google.com/p/gwt-exporter/), I would need a kind of GWT-Importer, that generated automatically .java wrappers of the javascript functions.
I'm aware type is an issue here, but I'd be content if all return types became JavaScriptObject or primitives.
JSNI seems to be the way, but I'd want something that created the classes automatically instead of having to manually bind via JSNI all of the methods.