EntityProxys are implemented using AutoBeans so you can use AutoBeanUtils.getAutoBean(EntityProxy proxy) to get an AutoBean instance from your proxy and then use an AutoBeanVisitor to traverse your hierarchy.
Thanks for these pointers, I was not aware of the AutoBeans machinery.
Unfortunately, this seems a "property tree traversal" kind of thing, and I need a "multiple dispatch" kind of thing.
As far as I can see, I still need a sequence of instanceof tests in AutoBeanVisitor.visit to dispatch to a different definition of visit based on the proxy concrete type.
Am I missing something?
--
P.
-- 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment