I created the default "hello world" GWT application and noticed that it has the following default code:
/**
* Create a remote service proxy to talk to the server-side Greeting service.
*/
private final GreetingServiceAsync greetingService = GWT.create(GreetingService.class);
I was wondering how this is possible since the declaration of GreetingService is:
@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteService {
String greetServer(String name) throws IllegalArgumentException;
}
I thought you weren't able to instantiate Interfaces?
Thanks!