Browse Source

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

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

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

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

Loading…
Cancel
Save