18.1. What does a generator do?

We’ll jump straight into what a generator does in this section by looking at the generator used by internationalization. A little earlier we discussed what this generator does, and figure 18.2 shows what’s happening diagrammatically when we’re compiling several source types for an imaginary application, MyApp, for the Swedish locale. At first glance, the figure can seem rather overwhelming. We’re doing the following:

Figure 18.2. A depiction of what happens in internationalization, which uses a generator to merge the MyMessages interface file with the MyMessages_sv properties file, when compiling the Swedish locale, to create a new internally generated class that’s then used in the compilation phase instead of ...

Get GWT in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.