Re: Proxy class generation
On Sun, Jan 11, 2009 at 09:25, Madhu CM wrote: > > Hi all, > I am new to GWT, and i like the way its been implemented. > But i am struck up with something I use simple application just > to do RPC. > when i do GWT.create() . where will be the proxy class generated ? > is it done dynamically?dynamically create object for Async?? please > explain about this . I thought this was covered somewhere in the docs... but anyway, its done at compile time. The GWT compiler examines call sites of GWT.create() and generates the proxy class for the input type. This is done based upon generate-with rules and replace-with rules within the *.gwt.xml files used by the application, or inherited by the application by the inherits rule in those files. GWT.create() itself is compiled out of the code; it doesn't appear in the output JavaScript. The call sites directly create an instance of the proxy. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Proxy class generation
Madhu CM wrote: > Hi all, > I am new to GWT, and i like the way its been implemented. > But i am struck up with something I have developed sample > application just > to do RPC. > when i do GWT.create() . where will be the proxy class generated ? > is it done dynamically?dynamically create object for Async?? please > explain about this . > > Thanks, > The "Proxy" class is generated at compile time through whats known as "Deferred Binding". Take a look here for more information about GWT.create(...): http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideDeferredBinding Basically the GWT.create(...) method is used to run a bit of special code during the compilation which can generate additional code. It's also using in GWT localization, ImageBundles and a few other places. It's not a runtime method (it doesn't exist at runtime). Hope that helps. Jason. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---