enable auto inject value after deserialization by defining readObject