Re: GWT-RPC Pass array of Serializable objects
Thanks! I've got that I must return an object of type as specific as
possible . In this case my RPC will work more efficient.
From http://code.google.com/intl/uk-UA/webtoolkit/doc/latest/DevGuideServerCommunication.html:
GWT RPC supports polymorphic parameters and return types. To make the
best use of polymorphism, however, you should still try to be as
specific as your design allows when defining service interfaces.
Increased specificity allows the compiler to do a better job of
removing unnecessary code when it optimizes your application for size
reduction.
Collection classes such as java.util.Set and java.util.List are tricky
because they operate in terms of Object instances. To make collections
serializable, you should specify the particular type of objects they
are expected to contain through normal type parameters (for example,
Map<Foo,Bar> rather than just Map). If you use raw collections or maps
you will get bloated code.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home