Skip to main content

Blog Archive for mjeffw during November 2008

In the last entry, I got to the point where I had a functional GWT generator that was creating a do-nothing shell of the Person_PropertyAdapter class. Here, I plan to complete that implementation. At this point, we are generating the following source code: package com.mjeffw.properties.client;public class Person_PropertyAdapter implements com.mjeffw.properties.client.PropertyAdapter { ...
So at this point, we have an interface, PropertyAdapter, for which we want GWT to generate an implementation at compile time using this call: PropertyAdapter<Person> adapter = (PropertyAdapter<Person>)GWT.create(Person.class); GWT must be told how to generate this class, which really means that GWT needs to be told which subclass of com.google.gwt.core.ext.Generator...