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