Browse Source

REPORT-114392 FR-FBP版本本地设计适配 代码规范

mss/2.0
Destiny.Lin 5 months ago
parent
commit
515e5bb422
  1. 13
      designer-base/src/main/java/com/fr/start/server/FineEmbedServer.java

13
designer-base/src/main/java/com/fr/start/server/FineEmbedServer.java

@ -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);
} }

Loading…
Cancel
Save