You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
867 B
32 lines
867 B
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; |
|
|
|
/** |
|
* Created by juhaoyu on 2018/6/6. |
|
* 基于env的模块启动关闭 |
|
*/ |
|
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); |
|
} |
|
}
|
|
|