I have server-side bean:
-- public class Author {
public Map<String, String> getAttributes() { /* ... */ }
public void setAttributes(Map<String, String> attributes) { /* ... */ }
}
and its RF proxy type:
@ProxyFor(value=Author.class, locator=AuthorLocator.class)
public interface AuthorProxy extends EntityProxy {
Map<String, String> getAttributes();
void setAttributes(Map<String, String> attributes);
}
Is there a way to provide custom instances of Map<String, String> that will be used when constructing proxy autobean?
According to docs, it seems that AutoBeanFactory.Category may provide implementation for additional methods in proxy interface that could do converting to/from MyMapClass but I wonder if it is possible to construct proper instances imediatelly upon autobean deserialization? I'm aware that it will still require casting return values to my class, but that is acceptable compromise).
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment