java - force serialization of static fields -


I need to continue several sections with many static fields (which are ordered in order and are modified) I will endeavor to convert from static field to wars for example, so I want to go for a quick solution, if any.

So far the path of resistance is to cook my own for every class> writeObject ()

Alternatively, I need serialization No system - Any system with constant storage to store / load any object. For shrinking objects such as bean objects, XMLDecoder

You can type a method A static method can be temporarily marked to use the reflection to sort all the static methods, which was normally redundant, but you can use it to highlight the areas that are You do not want to serial. You can call this method with your writing object () so that you can do it for each field.

Comments