J'ai créé la valeur par défaut « Bonjour tout le monde » application GWT et a remarqué qu'il a le code par défaut suivant:Comment GWT instancier une classe d'interface Java
/**
* Create a remote service proxy to talk to the server-side Greeting service.
*/
private final GreetingServiceAsync greetingService = GWT.create(GreetingService.class);
Je me demandais comment cela est possible depuis la déclaration de GreetingService est:
@RemoteServiceRelativePath("greet")
public interface GreetingService extends RemoteService {
String greetServer(String name) throws IllegalArgumentException;
}
Je pensais que vous n'étiez pas capable d'instancier des Interfaces?
Merci!
double possible de [instancier interface JAVA?] (Http: // stackoverflow.com/questions/3829642/instantiate-interface-en-java) – Bozho
Le lien @Kirk Bozho est sur ** GWT ** – Cristian