|
|
|
@ -13,7 +13,10 @@ public abstract class FineEmbedServer {
|
|
|
|
|
* 是否正在启动中 |
|
|
|
|
*/ |
|
|
|
|
private static volatile boolean onStarting = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 启动 |
|
|
|
|
*/ |
|
|
|
|
public synchronized static void start() throws Exception { |
|
|
|
|
onStarting = true; |
|
|
|
|
EventDispatcher.fire(EmbedServerEvent.BeforeStart); |
|
|
|
@ -21,10 +24,14 @@ public abstract class FineEmbedServer {
|
|
|
|
|
onStarting = false; |
|
|
|
|
EventDispatcher.fire(EmbedServerEvent.AfterStart); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 停止 |
|
|
|
|
*/ |
|
|
|
|
public synchronized static void stop() { |
|
|
|
|
EventDispatcher.fire(EmbedServerEvent.BeforeStop); |
|
|
|
|
ModuleContext.getModule(FineEmbedServerActivator.class).stop(); |
|
|
|
|
DesignEmbedHelper.stop(); |
|
|
|
|
EventDispatcher.fire(EmbedServerEvent.AfterStop); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|