S - The concrete type of the state object.public static class LaPasseFacade.Builder<S extends State> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CommandBus<S> |
commandBus |
protected EventBus<S> |
eventBus |
protected S |
initialState |
protected LoggerCollection<S> |
loggers |
protected MessageStore |
messageStore |
protected StateManager<S> |
stateManager |
protected CommandBus<S extends State> commandBus
protected LoggerCollection<S extends State> loggers
protected MessageStore messageStore
protected StateManager<S extends State> stateManager
public Builder(S initialState)
public LaPasseFacade<S> build()
protected CommandBus<S> createDefaultCommandBus(MessageStore messageStore, EventBus<S> eventBus, LoggerCollection<S> loggers, StateManager<S> stateManager)
protected EventBus<S> createDefaultEventBus(MessageStore messageStore, LoggerCollection<S> loggers, StateManager<S> stateManager)
protected LoggerCollection<S> createDefaultLoggers()
protected MessageStore createDefaultMessageStore()
protected StateManager<S> createDefaultStateManager(S initialState)
protected LaPasseFacade<S> createFacade(CommandBus<S> commandBus, EventBus<S> eventBus, LoggerCollection<S> loggers, StateManager<S> stateManager)
public LaPasseFacade.Builder<S> setCommandBus(CommandBus<S> commandBus)
public LaPasseFacade.Builder<S> setEventBus(EventBus<S> eventBus)
public LaPasseFacade.Builder<S> setLoggers(LoggerCollection<S> loggers)
public LaPasseFacade.Builder<S> setMessageStore(MessageStore messageStore)
public LaPasseFacade.Builder<S> setStateManager(StateManager<S> stateManager)
Copyright © 2016 Cooking Fox. All rights reserved.