startServer(getThriftServerDefBuilder());
}
private void startServer(final ThriftServerDefBuilder thriftServerDefBuilder)
{
bootstrap = Guice.createInjector(Stage.PRODUCTION, new NiftyModule() {
@Override
protected void configureNifty() {
bind().toInstance(thriftServerDefBuilder.build());
}
}).getInstance(NiftyBootstrap.class);