Tuesday, June 5, 2018

Re: GWT Emulated classes

GWT has a feature called "super source" which allows you to override existing source files with your own implementation. GWT itself uses this technique to emulate JRE classes and you can use that technique as well to emulate additional classes.

Take a look at http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml and scroll a little down until you see the headline "Overriding one package implementation with another" to get a short description of "super source".

All JRE classes emulated by GWT can be found in https://github.com/gwtproject/gwt/tree/master/user/super/com/google/gwt/emul and when you look at https://github.com/gwtproject/gwt/blob/master/user/super/com/google/gwt/emul/Emulation.gwt.xml you can see the <super-source /> tag. This tag does not set a path attribute which means that the whole folder which contains the Emulation.gwt.xml file should be treated as super source.

-- J.

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment