[Engine-devel] final fields on entities sent to client

Tomas Jelinek tjelinek at redhat.com
Tue Feb 28 09:02:11 UTC 2012


Hi all,

as the same entities as the ones used on the server are also sent to the client 
(e.g. org.ovirt.engine.core.common.businessentities.VM), this entities will than 
be serialized/deserialized using the GWT serialization. It means, this entities 
should follow the restrictions given by the GWT serialization: 
http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes

>From it I would like to point out this:
"Fields that are declared final are also not exchanged during RPCs, so they should generally be marked transient as well."

It means, that no fields which will be sent to client should be marked with the final keyword.

Thanks,
Tomas




More information about the Engine-devel mailing list