class MyClass implements Serializable {
transient int myTransient;
//Other variables
}
When I restore this class I want to initialize myTransient manually, but otherwise I just want to use the default serialization.
How can I inject an init() method into the object restore process without re-writing the entire serialization mechanism as it seems like Externalizable would have me do?