use of cn.taketoday.web.framework.server.WebServerApplicationLoader in project today-framework by TAKETODAY.
the class LightWebServer method contextInitialized.
@Override
protected void contextInitialized() {
super.contextInitialized();
try {
final WebServerApplicationLoader loader = new WebServerApplicationLoader(this::getMergedInitializers);
loader.setDispatcher(httpHandler);
loader.setApplicationContext(obtainApplicationContext());
loader.onStartup(obtainApplicationContext());
} catch (Throwable e) {
throw new ConfigurationException(e);
}
}
use of cn.taketoday.web.framework.server.WebServerApplicationLoader in project today-framework by TAKETODAY.
the class NettyWebServer method contextInitialized.
@Override
protected void contextInitialized() {
super.contextInitialized();
WebServerApplicationContext context = obtainApplicationContext();
try {
WebServerApplicationLoader loader = new WebServerApplicationLoader(this::getMergedInitializers);
loader.setApplicationContext(context);
loader.onStartup(context);
} catch (Throwable e) {
throw ExceptionUtils.sneakyThrow(e);
}
}
Aggregations