|
|
|
@ -14,6 +14,9 @@ public abstract class FineEmbedServer {
|
|
|
|
|
*/ |
|
|
|
|
private static volatile boolean onStarting = false; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 启动 |
|
|
|
|
*/ |
|
|
|
|
public synchronized static void start() throws Exception { |
|
|
|
|
onStarting = true; |
|
|
|
|
EventDispatcher.fire(EmbedServerEvent.BeforeStart); |
|
|
|
@ -22,9 +25,13 @@ public abstract class FineEmbedServer {
|
|
|
|
|
EventDispatcher.fire(EmbedServerEvent.AfterStart); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 停止 |
|
|
|
|
*/ |
|
|
|
|
public synchronized static void stop() { |
|
|
|
|
EventDispatcher.fire(EmbedServerEvent.BeforeStop); |
|
|
|
|
ModuleContext.getModule(FineEmbedServerActivator.class).stop(); |
|
|
|
|
DesignEmbedHelper.stop(); |
|
|
|
|
EventDispatcher.fire(EmbedServerEvent.AfterStop); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|