From 5921803db61b46a5d4aed789ae71470f62788292 Mon Sep 17 00:00:00 2001
From: "Roger.Chen"
Date: Thu, 27 Aug 2020 10:07:30 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=9F=E5=91=BD=E5=91=A8?=
=?UTF-8?q?=E6=9C=9F=E7=9B=91=E5=90=AC?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
plugin.xml | 5 ++--
.../showtype/NewPreviewInitializeMonitor.java | 23 +++++++++++++++++++
2 files changed, 26 insertions(+), 2 deletions(-)
create mode 100644 src/main/java/com/fr/plugin/showtype/NewPreviewInitializeMonitor.java
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);
+ }
+}