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