Interface InitialStateProvider<STATE>
- Type Parameters:
STATE- The type of aggregate/projection/viewSTATEprovided
public interface InitialStateProvider<STATE>
Decider or View related interface, which provides the Initial STATE for a given aggregate/projection/view.The
InitialStateProvider works in collaboration with the StateEvolver in the context of
the Decider or View pattern-
Method Summary
Modifier and TypeMethodDescriptiondefault STATEThe initial aggregate/projection/viewSTATEbefore anyEVENT's have been applied / projected onto the aggregate/projection/viewSTATE
Note: The default implementation returns anullaggregate/projection/viewSTATE
-
Method Details
-
initialState
The initial aggregate/projection/viewSTATEbefore anyEVENT's have been applied / projected onto the aggregate/projection/viewSTATE
Note: The default implementation returns anullaggregate/projection/viewSTATE- Returns:
- the initial projection/view
STATE. May be null
-