initializing transient fields
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Amir_Pashazadeh
Posted On:   Saturday, June 26, 2004 02:05 AM

Hi


Is there a way to set values for transient fields after deserialization?


I have following code:

			
import org.apache.log4j.Logger;

public class MyDto implements Serializable {
transient protected final Logger logger = Logger.getLogger(this.getClass);

...

}


and the class has some other properties. When the class is deserialized the logger field will be null . How can initialize the logger after deserialization?
About | Sitemap | Contact