|
|
@ -10,6 +10,7 @@ import com.fr.design.mainframe.App; |
|
|
|
import com.fr.design.mainframe.AppGroup; |
|
|
|
import com.fr.design.mainframe.AppGroup; |
|
|
|
import com.fr.design.mainframe.JTemplateFactory; |
|
|
|
import com.fr.design.mainframe.JTemplateFactory; |
|
|
|
import com.fr.nx.app.designer.CptxApp; |
|
|
|
import com.fr.nx.app.designer.CptxApp; |
|
|
|
|
|
|
|
import com.fr.workspace.server.repository.authority.RemoteAuthorityRepository; |
|
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
@ -36,6 +37,7 @@ public class DesignAppComponent { |
|
|
|
JTemplateFactory.register(app); |
|
|
|
JTemplateFactory.register(app); |
|
|
|
} |
|
|
|
} |
|
|
|
PluginRemote.getInstance().start(); |
|
|
|
PluginRemote.getInstance().start(); |
|
|
|
|
|
|
|
RemoteAuthorityRepository.getInstance().start(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -43,7 +45,7 @@ public class DesignAppComponent { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@Stop |
|
|
|
@Stop |
|
|
|
public void stop() { |
|
|
|
public void stop() { |
|
|
|
|
|
|
|
RemoteAuthorityRepository.getInstance().stop(); |
|
|
|
List<App> appList = new ArrayList<>(Carina.getApplicationContext().group(AppGroup.class).getAll()); |
|
|
|
List<App> appList = new ArrayList<>(Carina.getApplicationContext().group(AppGroup.class).getAll()); |
|
|
|
for (App app : appList) { |
|
|
|
for (App app : appList) { |
|
|
|
JTemplateFactory.remove(app); |
|
|
|
JTemplateFactory.remove(app); |
|
|
|