com.levigo.util.base
Interface Memento

All Known Implementing Classes:
AnnotationMemento, CompositeMemento

public interface Memento

A simple implementation of the Memento class from the well-known memento pattern. This implementation deviates slightly from the canonical implementation in that the memento originator is not responsible for restoring from a memento. Instead, each memento provides a restore() method, which is responsible for knowing which originator to target and the actual restore.


Method Summary
 void restore()
          Restore this memento's originator to its state at the time when this memento was created.
 

Method Detail

restore

void restore()
Restore this memento's originator to its state at the time when this memento was created.



Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.