帆软报表设计器源代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

29 lines
845 B

package com.fr.start.server;
import com.fr.event.EventDispatcher;
import com.fr.module.ModuleContext;
/**
* Created by juhaoyu on 2018/6/6.
*/
public abstract class FineEmbedServer {
public synchronized static void start() {
EventDispatcher.fire(EmbedServerEvent.BeforeStart);
ModuleContext.getModule(FineEmbedServerActivator.class).start();
EventDispatcher.fire(EmbedServerEvent.AfterStart);
}
public synchronized static void stop() {
EventDispatcher.fire(EmbedServerEvent.BeforeStop);
ModuleContext.getModule(FineEmbedServerActivator.class).stop();
EventDispatcher.fire(EmbedServerEvent.AfterStop);
}
public static boolean isRunning() {
return ModuleContext.getModule(FineEmbedServerActivator.class).isRunning();
}
}