Browse Source

REPORT-52819 加密组件加载相关逻辑补充

feature/10.0
kuangshuai 4 years ago
parent
commit
25293200a5
  1. 6
      designer-base/src/main/java/com/fr/design/mainframe/share/collect/SharableCollectorManager.java
  2. 13
      designer-form/src/main/java/com/fr/design/mainframe/share/util/SharableXMLUtils.java
  3. 11
      designer-realize/src/main/java/com/fr/design/share/SharableInitManager.java
  4. 3
      designer-realize/src/main/java/com/fr/start/module/DesignerActivator.java

6
designer-base/src/main/java/com/fr/design/mainframe/share/collect/CollectorManager.java → designer-base/src/main/java/com/fr/design/mainframe/share/collect/SharableCollectorManager.java

@ -14,7 +14,7 @@ import java.util.concurrent.TimeUnit;
/**
* created by Harrison on 2020/03/25
**/
public class CollectorManager {
public class SharableCollectorManager {
/**
* 1
@ -32,10 +32,10 @@ public class CollectorManager {
private ScheduledExecutorService service;
private static class ConfigManagerHolder {
private static CollectorManager instance = new CollectorManager();
private static SharableCollectorManager instance = new SharableCollectorManager();
}
public static CollectorManager getInstance() {
public static SharableCollectorManager getInstance() {
return ConfigManagerHolder.instance;
}

13
designer-form/src/main/java/com/fr/design/mainframe/share/util/SharableXMLUtils.java

@ -0,0 +1,13 @@
package com.fr.design.mainframe.share.util;
import com.fr.form.share.encrypt.engine.SharableReadHelper;
import com.fr.stable.xml.XMLConf;
import com.fr.stable.xml.helper.XMLReadHelper;
public class SharableXMLUtils {
public static synchronized void registerSharableReadHelper() {
XMLReadHelper readHelper = XMLConf.getReadHelper();
XMLReadHelper helper = new SharableReadHelper(readHelper);
XMLConf.registerXMLHelper(helper);
}
}

11
designer-realize/src/main/java/com/fr/design/share/SharableInitManager.java

@ -0,0 +1,11 @@
package com.fr.design.share;
import com.fr.design.mainframe.share.collect.SharableCollectorManager;
import com.fr.design.mainframe.share.util.SharableXMLUtils;
public class SharableInitManager {
public static void start() {
SharableXMLUtils.registerSharableReadHelper();
SharableCollectorManager.getInstance().execute();
}
}

3
designer-realize/src/main/java/com/fr/start/module/DesignerActivator.java

@ -60,12 +60,12 @@ import com.fr.design.os.impl.SupportOSImpl;
import com.fr.design.parameter.FormParameterReader;
import com.fr.design.parameter.ParameterPropertyPane;
import com.fr.design.parameter.WorkBookParameterReader;
import com.fr.design.share.SharableInitManager;
import com.fr.design.share.ui.config.ShareConfigPane;
import com.fr.design.share.ui.generate.ShareGeneratePane;
import com.fr.design.update.actions.RecoverForDesigner;
import com.fr.design.update.push.DesignerPushUpdateManager;
import com.fr.design.widget.ui.btn.FormSubmitButtonDetailPane;
import com.fr.form.stable.ElementCaseThumbnailProcessor;
import com.fr.general.GeneralContext;
import com.fr.general.xml.GeneralXMLTools;
import com.fr.js.EmailJavaScript;
@ -205,6 +205,7 @@ public class DesignerActivator extends Activator {
designerRegister();
InformationCollector.getInstance().collectStartTime();
SharableInitManager.start();
}
private void createPluginListener() {

Loading…
Cancel
Save