|
|
|
@ -6,9 +6,14 @@ import com.fanruan.carina.annotions.FineComponent;
|
|
|
|
|
import com.fanruan.carina.annotions.Start; |
|
|
|
|
import com.fanruan.carina.annotions.Stop; |
|
|
|
|
import com.fanruan.carina.annotions.Supplemental; |
|
|
|
|
import com.fr.concurrent.NamedThreadFactory; |
|
|
|
|
import com.fr.nx.app.web.StreamAndTemplateReportletCreator; |
|
|
|
|
import com.fr.nx.app.web.StreamReportletCreator; |
|
|
|
|
import com.fr.report.ReportHelper; |
|
|
|
|
import com.fr.stable.TemplateIOErrorContextHolder; |
|
|
|
|
import com.fr.web.factory.WebletFactory; |
|
|
|
|
import java.util.concurrent.ExecutorService; |
|
|
|
|
import java.util.concurrent.Executors; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* DesignReportBaseComponent |
|
|
|
@ -20,6 +25,7 @@ import com.fr.web.factory.WebletFactory;
|
|
|
|
|
@FineComponent(name = "design_function_report_base") |
|
|
|
|
@DependsOn(dependencies = "design_function_chart_base") |
|
|
|
|
public class DesignReportBaseComponent extends ReportBaseComponent { |
|
|
|
|
private static final ExecutorService executorService = Executors.newSingleThreadExecutor(new NamedThreadFactory("RegisterPluginNameMap")); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* prepare |
|
|
|
@ -45,4 +51,14 @@ public class DesignReportBaseComponent extends ReportBaseComponent {
|
|
|
|
|
public void stop() { |
|
|
|
|
super.stop(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void registerPluginNameMap() { |
|
|
|
|
executorService.submit(() -> { |
|
|
|
|
// 插件名称对照表注入
|
|
|
|
|
TemplateIOErrorContextHolder.registerPluginNameMap( |
|
|
|
|
ReportHelper.getPluginNameMap(), |
|
|
|
|
ReportHelper.getPluginNameMapWhitelist()); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|