Reputation: 10342
I am investigating the usage of gwt autobeans in my project. When I were reading about this component, I came across a concept of autobean wrapping but found no explanation why it was created. What is it good for? Where can I use it?
Upvotes: 1
Views: 590
Reputation: 27707
AutoBean wrapping becomes useful when you have existing beans that implement that interface. After wrapping the AutoBean has all the properties so you don't have to copy data manually using setters.
When you have the AutoBean you can perform all kinds of useful operations:
It would be more difficult to do these operations without frameworks in both client and server. I use AutoBeans in my GWT app to serialize/deserialize to Json and transfer beans via web-sockets to the client.
Upvotes: 0