Store/Restore snapshot/state of entire application
问题 I want to store the entire application state and then restore it on the next start. Is there a library which would make it easier for me? Or does anyone of you have any suggestions? Standalone Application 回答1: There is a design pattern that is used for your purpouse, and it is the Memento Pattern. The memento pattern is implemented with three objects: the originator, a caretaker and a memento. The originator is some object that has an internal state. The caretaker is going to do something to