Browse Source

DEC-472 新模块划分与启动、关闭框架

已经改好了
master
ju 7 years ago
parent
commit
7b0ecab0ad
  1. 16
      designer_base/src/com/fr/start/server/TomcatHost.java

16
designer_base/src/com/fr/start/server/TomcatHost.java

@ -145,28 +145,12 @@ public class TomcatHost {
return server; return server;
} }
//MoMeak:调试用,等ju那边联调好了删
private void setRootNull(){
Class<?> clazz = ModuleContext.class;
try {
Field field = clazz.getDeclaredField("root");
field.setAccessible(true);
field.set(null,null);
} catch (NoSuchFieldException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
}
}
/** /**
* Start * Start
* *
* @throws Exception * @throws Exception
*/ */
public void start() throws Exception { public void start() throws Exception {
//MoMeak:调试用
setRootNull();
tomcat.start(); tomcat.start();
for (int i = 0; i < listenerList.size(); i++) { for (int i = 0; i < listenerList.size(); i++) {
TomcatServerListener listener = TomcatHost.this.getLinstener(i); TomcatServerListener listener = TomcatHost.this.getLinstener(i);

Loading…
Cancel
Save