Thanks, Sasha. I'll look into registerSerializer() this morning.
Regarding ClientResult, you're right that this particular one looks
like
a classic transfer object. This was just the first test for what will
likely
become a set of objects, some of which already exist with various
methods and other structure on the server that I didn't want to expose
on the client. Since I needed two implementations of the object with
somewhat different functionality, I was going with the interface/
implementation
style. I could, of course, do it just using a POJO object with less
behavior and write other wrapper objects on both sides to provide the
behavior.
Here's a trivial example based on my original test (suggestions for
object
style are appreciated!)
The real 'ClientResult' object will pass back a status code and
message
along with a value. I want methods to be able to set the status code
and
message on the server, but only to read it on the client. I can write
a POJO
that has getters and setters, and use the setters on the server and
getters
on the client, but that doesn't prevent the client from using setters
too.
(Obviously this isn't a real big problem with status and message, but
it
illustrates what I'm hoping to avoid.)
Thanks!
Dave