Browse Source

Merge pull request #89 in DESIGN/design from ~JU/design:feature/10.0 to feature/10.0

* commit 'df455d441d46f74308b53197bc40749cad8672df':
  无JIRA任务 打包
master
superman 7 years ago
parent
commit
6edb158497
  1. 8
      designer-base/src/com/fr/start/server/FineEmbedServer.java

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

@ -5,10 +5,6 @@ import com.fr.design.DesignerEnvManager;
import com.fr.event.EventDispatcher; import com.fr.event.EventDispatcher;
import com.fr.log.FineLoggerFactory; import com.fr.log.FineLoggerFactory;
import com.fr.module.ModuleRole; import com.fr.module.ModuleRole;
import com.fr.stable.lifecycle.AbstractLifecycle;
import com.fr.stable.lifecycle.Lifecycle;
import com.fr.stable.lifecycle.LifecycleEvent;
import com.fr.stable.lifecycle.LifecycleListener;
import com.fr.startup.FineWebApplicationInitializer; import com.fr.startup.FineWebApplicationInitializer;
import com.fr.third.springframework.web.SpringServletContainerInitializer; import com.fr.third.springframework.web.SpringServletContainerInitializer;
import com.fr.third.springframework.web.context.support.AnnotationConfigWebApplicationContext; import com.fr.third.springframework.web.context.support.AnnotationConfigWebApplicationContext;
@ -40,7 +36,7 @@ public class FineEmbedServer {
private FineEmbedServer() {} private FineEmbedServer() {}
public void start() { public synchronized void start() {
if (isRunning) { if (isRunning) {
return; return;
@ -57,7 +53,7 @@ public class FineEmbedServer {
EventDispatcher.fire(EmbedServerEvent.AfterStart); EventDispatcher.fire(EmbedServerEvent.AfterStart);
} }
public void stop() { public synchronized void stop() {
if (!isRunning) { if (!isRunning) {
return; return;

Loading…
Cancel
Save