com.levigo.util.base
Interface MementoOriginator
- All Known Implementing Classes:
- Annotation, ArrowAnnotation, EllipseAnnotation, HistoryAnnotation, ImageAnnotation, LineAnnotation, ObjectAnnotation, PathAnnotation, RectangleAnnotation, ShapeBasedAnnotation, StampAnnotation, StampImageAnnotation, TextAnnotation
public interface MementoOriginator
A simple implementation of the Originator 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
Memento.restore()
method, which is responsible for knowing which originator to target
and the actual restore.
createMemento
Memento createMemento()
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.