diff --git a/plugin.xml b/plugin.xml index 69f5e80..24a82e7 100644 --- a/plugin.xml +++ b/plugin.xml @@ -5,11 +5,11 @@ yes 1.0 10.0 - 2020-08-24 + 2020-08-27 finereport.mata [2020-08-24]新预览显示类型

+

[2020-08-27]新预览显示类型

]]>
@@ -19,4 +19,5 @@ + \ No newline at end of file diff --git a/src/main/java/com/fr/plugin/showtype/NewPreviewInitializeMonitor.java b/src/main/java/com/fr/plugin/showtype/NewPreviewInitializeMonitor.java new file mode 100644 index 0000000..901a8cc --- /dev/null +++ b/src/main/java/com/fr/plugin/showtype/NewPreviewInitializeMonitor.java @@ -0,0 +1,23 @@ +package com.fr.plugin.showtype; + +import com.fr.decision.web.MainComponent; +import com.fr.plugin.context.PluginContext; +import com.fr.plugin.observer.inner.AbstractPluginLifecycleMonitor; +import com.fr.web.struct.Registry; + +/** + * @Author Roger + * @Date 2020/8/27 8:54 + * @Version 10.0 + */ +public class NewPreviewInitializeMonitor extends AbstractPluginLifecycleMonitor { + @Override + public void afterRun(PluginContext pluginContext) { + Registry.register(MainComponent.class, NewPreviewComponent.KEY); + } + + @Override + public void beforeStop(PluginContext pluginContext) { + Registry.remove(MainComponent.class, NewPreviewComponent.KEY); + } +}