|
|
@ -14,6 +14,9 @@ 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); |
|
|
@ -22,9 +25,13 @@ public abstract class FineEmbedServer { |
|
|
|
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); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|