public ApplicationBootstrap(ApplicationConfig config, ApplicationState state) { this.config = config; this.state = state; XioServiceLocator.buildInstance(config, state); }
public XioServerBootstrap( ApplicationState appState, XioServerConfig config, XioServerState state) { serverBootstrap = new ServerBootstrap(); pipelineAssembler = new XioPipelineAssembler(appState, config, state); this.config = config; this.state = state; if (XioServiceLocator.getInstance() == null) { XioServiceLocator.buildInstance(appState.config(), appState); } bindAddress(config.getBindAddress()); channelConfig(appState.getChannelConfiguration()); }