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 |
| Modifier and Type | Method and Description |
|---|---|
LaPasseFacade<S> |
build()
Build a new facade using the current settings.
|
LaPasseFacade.Builder<S> |
setCommandBus(CommandBus<S> commandBus) |
LaPasseFacade.Builder<S> |
setEventBus(EventBus<S> eventBus) |
LaPasseFacade.Builder<S> |
setLoggers(LoggerCollection<S> loggers) |
LaPasseFacade.Builder<S> |
setMessageStore(MessageStore messageStore) |
LaPasseFacade.Builder<S> |
setStateManager(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()
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.