Interface InitialStateProvider<STATE>
-
- Type Parameters:
STATE- The type of aggregate/projection/viewSTATEprovided
public interface InitialStateProvider<STATE>DeciderorViewrelated interface, which provides the InitialSTATEfor a given aggregate/projection/view.
TheInitialStateProviderworks in collaboration with theStateEvolverin the context of theDeciderorViewpattern
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default STATEinitialState()The initial aggregate/projection/viewSTATEbefore anyEVENT's have been applied / projected onto the aggregate/projection/viewSTATE
Note: The default implementation returns anullaggregate/projection/viewSTATE
-
-
-
Method Detail
-
initialState
default STATE 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
-
-