Since we have started using autovalue, I would like us to explore using
http://immutables.github.io/ (Immutables) as well.
>From what I see using the standalone version might work similar to autovalue
>(it does require guava 18 and java 7 to run, but generated code shouldn't).
In the openstack world (and other places) it would be very useful as it will
continue to allow us to provide users with a way to generate complex immutable
objects which can then be serialized and sent to the service, avoiding heavy
use of binders and options classes. Jeremy sugeested I look into it, and it
seems very promising.
Some work might have to be done (with the jclouds gson) to make sure this works
consistently with custom name serialization and to make sure everything is
consistent with autovalue. AutoValue classes will still be used to parse json
as returned by the service.
Thoughts?