GWT.create() is basically a compile time thing ...

GWT.create() is magically transformed in the compile process to  
something like "new MyAsyncImpl()"

At compile time, the MyAsyncImpl() class is "generated" along with the  
serialization classes needed. And the javascript simply uses the class  
generated at compile time. GWT.create() is just a trigger for the  
compiler to generate the classes and to replace the GWT.create() with  
the actual generated implementation.

again, this all happens at compile time, not runtime.

-jason

On Apr 23, 2009, at 10:36 AM, JoeB wrote:

>
> So what does happen during the call to GWT.create() for an RPC?  Is a
> JavaScript "class" for the async proxy being generated in the client
> on-the-fly?  Is a round-trip made to the server to fetch some pre-
> compiled code appropriate to the browser-type?
>
> -- Joe
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to