ViewModel

Indicates that an object belongs to the UI/application layer, and is intended to be used as a view model.

API

ViewModel.java
interface ViewModel {
  String viewModelMemento()     (1)
}
1 viewModelMemento()

Obtain a memento of the view model.

Members

viewModelMemento()

Obtain a memento of the view model.

Instances of ViewModel must include a public single String argument constructor, that recreates an instance from a memento string. This constructor is not required to resolve injection points or fire domain events, instead this responsibility is encapsulated with the framework.