use of com.generallycloud.baseio.container.implementation.SystemStopServerServlet in project baseio by generallycloud.
the class ApplicationContext method initializeApplicationContext.
private void initializeApplicationContext() throws Exception {
this.classLoader = Bootstrap.newClassLoader(deployModel, true, rootLocalAddress, Bootstrap.withDefault());
this.applicationExtLoader.loadExts(this, classLoader);
this.configuration = acLoader.loadConfiguration(classLoader);
if (pluginLoader == null) {
this.pluginLoader = new PluginLoader();
}
if (filterLoader == null) {
this.filterLoader = new FutureAcceptorFilterLoader(getFutureAcceptorServiceFilter());
}
if (configuration.isAPP_ENABLE_REDEPLOY()) {
SystemRedeployServlet redeployServlet = new SystemRedeployServlet();
filterLoader.getFutureAcceptorServiceLoader().getServices().put(redeployServlet.getServiceName(), redeployServlet);
}
if (configuration.isAPP_ENABLE_STOPSERVER()) {
SystemStopServerServlet stopServerServlet = new SystemStopServerServlet();
filterLoader.getFutureAcceptorServiceLoader().getServices().put(stopServerServlet.getServiceName(), stopServerServlet);
}
pluginLoader.initialize(this, null);
filterLoader.initialize(this, null);
}
Aggregations