title: To initialize a transient field, what is the most simple solution
body: <pre><code>class MyClass implements Serializable {
    transient int myTransient;
    //Other variables
  }
  </code></pre>
  
  <p>When I restore this class I want to initialize <code>myTransient</code> manually, but otherwise I just want to use the default serialization.</p>
  
  <p>How can I inject an <code>init()</code> method into the object restore process without re-writing the entire serialization mechanism as it seems like <code>Externalizable</code> would have me do?</p>