write java object into class file
问题 Is there any way to write a loaded Java object into a .class file or is there any other type of file that can easily be read to represent an instance's properties. For example, CGLIB will create an proxy bean which extends another, i really want to export this enhanced bean out to a file to see how it was enhanced. 回答1: For cglib, instances can only be serialized and only if the instance's method interceptors support serialization. There is no other way. In order to get hold of a cglib