|
|
|
@ -1,8 +1,6 @@
|
|
|
|
|
package com.fr.start.module; |
|
|
|
|
|
|
|
|
|
import com.fr.chart.activator.ChartBaseActivator; |
|
|
|
|
import com.fr.module.Activator; |
|
|
|
|
import com.fr.stable.CoreActivator; |
|
|
|
|
import com.fr.start.server.FineEmbedServer; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -13,20 +11,11 @@ public class EnvBasedModule extends Activator {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void start() { |
|
|
|
|
//core和设计器启动
|
|
|
|
|
startSub(CoreActivator.class); |
|
|
|
|
startSub(ChartBaseActivator.class); |
|
|
|
|
getSub("designer").start(); |
|
|
|
|
//这里不启动tomcat,由客户手动触发
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void stop() { |
|
|
|
|
//先关闭tomcat(如果已经启动了的话)
|
|
|
|
|
FineEmbedServer.stop(); |
|
|
|
|
//倒叙关闭其他模块
|
|
|
|
|
getSub("designer").stop(); |
|
|
|
|
stopSub(ChartBaseActivator.class); |
|
|
|
|
stopSub(CoreActivator.class); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|