From 068fe844e6ea29cffa702cf109008e050aa3cde3 Mon Sep 17 00:00:00 2001 From: hzzz Date: Fri, 8 Jun 2018 13:38:34 +0800 Subject: [PATCH 01/10] env --- .../src/com/fr/start/module/DesignerModuleActivator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/designer-realize/src/com/fr/start/module/DesignerModuleActivator.java b/designer-realize/src/com/fr/start/module/DesignerModuleActivator.java index 2855a45f4f..a32ba54b2e 100644 --- a/designer-realize/src/com/fr/start/module/DesignerModuleActivator.java +++ b/designer-realize/src/com/fr/start/module/DesignerModuleActivator.java @@ -1,5 +1,6 @@ package com.fr.start.module; +import com.fr.common.rpc.netty.RemoteCallClient; import com.fr.design.mainframe.loghandler.socketio.DesignerSocketIO; import com.fr.design.module.DesignerModule; import com.fr.general.ModuleContext; @@ -19,6 +20,7 @@ public class DesignerModuleActivator extends Activator implements Prepare { ModuleContext.startModule(DesignerModule.class.getName()); DesignerSocketIO.init(); + RemoteCallClient.getInstance(); } @Override From 5219c6e0d2ba2530fe4c5bd0ea02dc6b062f487c Mon Sep 17 00:00:00 2001 From: hzzz Date: Fri, 8 Jun 2018 13:49:10 +0800 Subject: [PATCH 02/10] env --- designer-base/src/com/fr/env/RemoteEnv.java | 76 ++++++--------------- 1 file changed, 20 insertions(+), 56 deletions(-) diff --git a/designer-base/src/com/fr/env/RemoteEnv.java b/designer-base/src/com/fr/env/RemoteEnv.java index ffb42c122b..2fbd34d417 100644 --- a/designer-base/src/com/fr/env/RemoteEnv.java +++ b/designer-base/src/com/fr/env/RemoteEnv.java @@ -8,7 +8,6 @@ import com.fr.base.remote.RemoteDeziConstants; import com.fr.common.rpc.RemoteCallServerConfig; import com.fr.common.rpc.netty.MessageSendExecutor; import com.fr.common.rpc.netty.RemoteCallClient; -import com.fr.core.env.EnvConstants; import com.fr.core.env.EnvContext; import com.fr.core.env.resource.RemoteEnvConfig; import com.fr.data.TableDataSource; @@ -27,7 +26,6 @@ import com.fr.general.IOUtils; import com.fr.general.Inter; import com.fr.general.LogRecordTime; import com.fr.general.LogUtils; -import com.fr.general.http.HttpToolbox; import com.fr.io.utils.ResourceIOUtils; import com.fr.json.JSONArray; import com.fr.json.JSONObject; @@ -39,18 +37,15 @@ import com.fr.stable.ArrayUtils; import com.fr.stable.EncodeConstants; import com.fr.stable.Filter; import com.fr.stable.JavaCompileInfo; -import com.fr.stable.ProductConstants; import com.fr.stable.StableUtils; import com.fr.stable.StringUtils; import com.fr.stable.SvgProvider; import com.fr.stable.file.XMLFileManagerProvider; import com.fr.stable.project.ProjectConstants; import com.fr.stable.xml.XMLTools; -import com.fr.third.guava.base.Strings; -import com.fr.third.guava.collect.ImmutableMap; import com.fr.web.ResourceConstants; -import javax.swing.*; +import javax.swing.JOptionPane; import javax.xml.transform.Source; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerConfigurationException; @@ -58,7 +53,7 @@ import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; -import java.awt.*; +import java.awt.Component; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; @@ -75,8 +70,6 @@ import java.util.HashMap; import java.util.Iterator; import java.util.Map; -import static com.fr.third.guava.base.Preconditions.checkArgument; - /** * @author null */ @@ -217,7 +210,13 @@ public class RemoteEnv extends AbstractEnv implements DesignAut * @throws Exception 异常 */ public boolean testServerConnection() throws Exception { - return testConnection(true, true, DesignerContext.getDesignerFrame()); + try { + connectOnce(); + return true; + } catch (Exception e) { + JOptionPane.showMessageDialog(DesignerContext.getDesignerFrame(), Inter.getLocText("Datasource-Connection_failed")); + return false; + } } /** @@ -228,7 +227,12 @@ public class RemoteEnv extends AbstractEnv implements DesignAut */ @Override public boolean testServerConnectionWithOutShowMessagePane() throws Exception { - return testConnection(false, true, DesignerContext.getDesignerFrame()); + try { + connectOnce(); + return true; + } catch (Exception e) { + return false; + } } /** @@ -239,55 +243,15 @@ public class RemoteEnv extends AbstractEnv implements DesignAut * @throws Exception 异常 */ public boolean testConnectionWithOutRegisteServer(Component messageParentPane) throws Exception { - return testConnection(true, false, messageParentPane); - } - - - private boolean testConnection(boolean needMessage, boolean isRegisteServer, Component parentComponent) throws Exception { - checkArgument(parentComponent instanceof Component, "parentComponent should be a java.awt.component"); - Component component = parentComponent; - String url = String.format("%s/connection", EnvConstants.toDecisionPath(getPath())); - ImmutableMap params = ImmutableMap.of( - "version", (Object) ProductConstants.DESIGNER_VERSION - ); - ImmutableMap headers = ImmutableMap.of( - EnvConstants.USERNAME, getUser(), - EnvConstants.PWD, getPassword()); - String res = HttpToolbox.post(url, params, headers); - if (Strings.isNullOrEmpty(res)) { - if (needMessage) { - JOptionPane.showMessageDialog(component, Inter.getLocText("Datasource-Connection_failed")); - } - return false; - } else if (ComparatorUtils.equals(res, "true")) { + try { + connectOnce(); return true; - } else { - if (ComparatorUtils.equals(res, EnvConstants.AUTH_ERROR)) { - JOptionPane.showMessageDialog(component, - Inter.getLocText(new String[]{"Datasource-Connection_failed", "Registration-User_Name", "Password", "Error"}, new String[]{",", "", "", "!"}) - , Inter.getLocText("FR-Server-All_Error"), JOptionPane.ERROR_MESSAGE); - return false; - } else { - if (ComparatorUtils.equals(res, EnvConstants.WAR_ERROR)) { - if (needMessage) { - JOptionPane.showMessageDialog(component, Inter.getLocText(new String[]{"Datasource-Connection_failed", "NS-war-remote"}, new String[]{",", "!"})); - } else { - FineLoggerFactory.getLogger().info(Inter.getLocText(new String[]{"Datasource-Connection_failed", "NS-war-remote"}, new String[]{",", "!"})); - } - return false; - } else { - if (needMessage) { - JOptionPane.showMessageDialog(component, Inter.getLocText("Datasource-Connection_failed")); - } else { - FineLoggerFactory.getLogger().info(Inter.getLocText(new String[]{"Datasource-Connection_failed", "Version-does-not-support"}, new String[]{",", "!"})); - } - return false; - } - } + } catch (Exception e) { + JOptionPane.showMessageDialog(messageParentPane, Inter.getLocText("Datasource-Connection_failed")); + return false; } } - private void refreshHttpSProperty() { if (getPath().startsWith(HTTPS_PREFIX) && System.getProperty(CERT_KEY) == null) { DesignerEnvManager envManager = DesignerEnvManager.getEnvManager(); From ed0a5118faaa72345285ad9f5454cdc725e00d12 Mon Sep 17 00:00:00 2001 From: hzzz Date: Fri, 8 Jun 2018 16:57:15 +0800 Subject: [PATCH 03/10] env --- designer-base/src/com/fr/env/SignIn.java | 27 ++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/designer-base/src/com/fr/env/SignIn.java b/designer-base/src/com/fr/env/SignIn.java index 902acdaf19..b76c67853a 100644 --- a/designer-base/src/com/fr/env/SignIn.java +++ b/designer-base/src/com/fr/env/SignIn.java @@ -1,9 +1,15 @@ package com.fr.env; +import com.fr.base.operator.connect.ConnectOperator; +import com.fr.common.rpc.RemoteCallServerConfig; +import com.fr.common.rpc.netty.RemoteCallClient; +import com.fr.common.rpc.serialize.SerializeProtocol; import com.fr.core.env.EnvConfig; import com.fr.core.env.EnvContext; import com.fr.core.env.EnvEvent; +import com.fr.core.env.proxy.EnvMessageSendProxy; +import com.fr.core.env.resource.RemoteEnvConfig; import com.fr.design.mainframe.DesignerContext; import com.fr.design.utils.DesignUtils; import com.fr.event.Event; @@ -12,8 +18,9 @@ import com.fr.event.Listener; import com.fr.event.Null; import com.fr.general.ComparatorUtils; import com.fr.general.Inter; +import com.fr.third.guava.reflect.Reflection; -import javax.swing.*; +import javax.swing.JOptionPane; public class SignIn { @@ -34,10 +41,26 @@ public class SignIn { * @throws Exception 异常 */ public static void signIn(EnvConfig selectedEnv) throws Exception { - + SerializeProtocol serializeProtocol = RemoteCallServerConfig.getInstance().getSerializeProtocol(); + if (EnvContext.currentEnv() != null && !ComparatorUtils.equals(EnvContext.currentEnv(), selectedEnv)) { EnvContext.signOut(); } + if (selectedEnv instanceof RemoteEnvConfig) { + RemoteCallClient.getInstance().load( + ((RemoteEnvConfig) selectedEnv).getHost(), + ((RemoteEnvConfig) selectedEnv).getPort(), + serializeProtocol); + } DesignUtils.switchToEnv(selectedEnv); } + + public static void main(String[] args) { + RemoteCallClient.getInstance().load( + "127.0.0.1", + 39999, + SerializeProtocol.KRYOSERIALIZE); + ConnectOperator connectOperator = Reflection.newProxy(ConnectOperator.class, new EnvMessageSendProxy()); + connectOperator.connect("1", "1"); + } } \ No newline at end of file From ef411f86d0f038e02d95e11cd1bdb04365152f43 Mon Sep 17 00:00:00 2001 From: hzzz Date: Fri, 15 Jun 2018 09:19:45 +0800 Subject: [PATCH 04/10] env --- designer-base/src/com/fr/env/RemoteEnv.java | 87 +++++++++++++++------ 1 file changed, 61 insertions(+), 26 deletions(-) diff --git a/designer-base/src/com/fr/env/RemoteEnv.java b/designer-base/src/com/fr/env/RemoteEnv.java index 1e76a6ac78..d5b10071d9 100644 --- a/designer-base/src/com/fr/env/RemoteEnv.java +++ b/designer-base/src/com/fr/env/RemoteEnv.java @@ -9,6 +9,7 @@ import com.fr.base.remote.RemoteDeziConstants; import com.fr.common.rpc.RemoteCallServerConfig; import com.fr.common.rpc.netty.MessageSendExecutor; import com.fr.common.rpc.netty.RemoteCallClient; +import com.fr.core.env.EnvConstants; import com.fr.core.env.EnvContext; import com.fr.data.impl.storeproc.StoreProcedure; import com.fr.dav.AbstractEnv; @@ -22,7 +23,6 @@ import com.fr.general.ComparatorUtils; import com.fr.general.EnvProxyFactory; import com.fr.general.IOUtils; import com.fr.general.Inter; - import com.fr.general.http.HttpToolbox; import com.fr.io.utils.ResourceIOUtils; import com.fr.json.JSONArray; @@ -34,18 +34,16 @@ import com.fr.share.ShareConstants; import com.fr.stable.ArrayUtils; import com.fr.stable.EncodeConstants; import com.fr.stable.Filter; - import com.fr.stable.ProductConstants; import com.fr.stable.StableUtils; import com.fr.stable.StringUtils; import com.fr.stable.SvgProvider; import com.fr.stable.project.ProjectConstants; - import com.fr.third.guava.base.Strings; import com.fr.third.guava.collect.ImmutableMap; import com.fr.web.ResourceConstants; -import javax.swing.JOptionPane; +import javax.swing.*; import javax.xml.transform.Source; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerConfigurationException; @@ -53,7 +51,6 @@ import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerFactory; import javax.xml.transform.dom.DOMSource; import javax.xml.transform.stream.StreamResult; - import java.awt.*; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; @@ -68,6 +65,8 @@ import java.util.ArrayList; import java.util.HashMap; import java.util.Map; +import static com.fr.third.guava.base.Preconditions.checkArgument; + /** * @author null */ @@ -109,15 +108,15 @@ public class RemoteEnv extends AbstractEnv implements DesignAut MessageSendExecutor.getInstance().stop(); return true; } - + @Override public EnvProxyFactory getProxyFactory() { - + return new EnvProxyFactory() { - + @Override public T get(Class clazz, T obj) { - + assert clazz != null; try { return MessageSendExecutor.getInstance().execute(clazz); @@ -127,10 +126,10 @@ public class RemoteEnv extends AbstractEnv implements DesignAut } }; } - + @Override public FileOperator getFileOperator() throws Exception { - + return MessageSendExecutor.getInstance().execute(FileOperator.class); } @@ -143,7 +142,7 @@ public class RemoteEnv extends AbstractEnv implements DesignAut public OrganizationOperator getOrganizationOperator() throws Exception { return MessageSendExecutor.getInstance().execute(OrganizationOperator.class); } - + @Override public RemoteEnvConfig getEnvConfig() { return config; @@ -254,12 +253,7 @@ public class RemoteEnv extends AbstractEnv implements DesignAut */ @Override public boolean testServerConnectionWithOutShowMessagePane() throws Exception { - try { - connectOnce(); - return true; - } catch (Exception e) { - return false; - } + return testConnection(false, true, DesignerContext.getDesignerFrame()); } /** @@ -270,15 +264,55 @@ public class RemoteEnv extends AbstractEnv implements DesignAut * @throws Exception 异常 */ public boolean testConnectionWithOutRegisteServer(Component messageParentPane) throws Exception { - try { - connectOnce(); - return true; - } catch (Exception e) { - JOptionPane.showMessageDialog(messageParentPane, Inter.getLocText("Datasource-Connection_failed")); + return testConnection(true, false, messageParentPane); + } + + + private boolean testConnection(boolean needMessage, boolean isRegisteServer, Component parentComponent) throws Exception { + checkArgument(parentComponent instanceof Component, "parentComponent should be a java.awt.component"); + Component component = parentComponent; + String url = String.format("%s/connection", EnvConstants.toDecisionPath(getPath())); + ImmutableMap params = ImmutableMap.of( + "version", (Object) ProductConstants.DESIGNER_VERSION + ); + ImmutableMap headers = ImmutableMap.of( + EnvConstants.USERNAME, getUser(), + EnvConstants.PWD, getPassword()); + String res = HttpToolbox.post(url, params, headers); + if (Strings.isNullOrEmpty(res)) { + if (needMessage) { + JOptionPane.showMessageDialog(component, Inter.getLocText("Datasource-Connection_failed")); + } return false; + } else if (ComparatorUtils.equals(res, "true")) { + return true; + } else { + if (ComparatorUtils.equals(res, EnvConstants.AUTH_ERROR)) { + JOptionPane.showMessageDialog(component, + Inter.getLocText(new String[]{"Datasource-Connection_failed", "Registration-User_Name", "Password", "Error"}, new String[]{",", "", "", "!"}) + , Inter.getLocText("FR-Server-All_Error"), JOptionPane.ERROR_MESSAGE); + return false; + } else { + if (ComparatorUtils.equals(res, EnvConstants.WAR_ERROR)) { + if (needMessage) { + JOptionPane.showMessageDialog(component, Inter.getLocText(new String[]{"Datasource-Connection_failed", "NS-war-remote"}, new String[]{",", "!"})); + } else { + FineLoggerFactory.getLogger().info(Inter.getLocText(new String[]{"Datasource-Connection_failed", "NS-war-remote"}, new String[]{",", "!"})); + } + return false; + } else { + if (needMessage) { + JOptionPane.showMessageDialog(component, Inter.getLocText("Datasource-Connection_failed")); + } else { + FineLoggerFactory.getLogger().info(Inter.getLocText(new String[]{"Datasource-Connection_failed", "Version-does-not-support"}, new String[]{",", "!"})); + } + return false; + } + } } } + private void refreshHttpSProperty() { if (getPath().startsWith(HTTPS_PREFIX) && System.getProperty(CERT_KEY) == null) { DesignerEnvManager envManager = DesignerEnvManager.getEnvManager(); @@ -409,8 +443,8 @@ public class RemoteEnv extends AbstractEnv implements DesignAut return Boolean.valueOf(IOUtils.inputStream2String(input, EncodeConstants.ENCODING_UTF_8)); } - - + + /** * nameValuePairs,这个参数要接着this.path,拼成一个URL,否则服务器端req.getParameter是无法得到的 * @@ -543,7 +577,8 @@ public class RemoteEnv extends AbstractEnv implements DesignAut */ @Override public String getWebReportPath() { - return getPath().substring(0, getPath().lastIndexOf("/")); + + return StableUtils.pathJoin(getPath(), getAppName()); } public String[] getProcedureColumns(StoreProcedure storeProcedure, Map parameterMap) throws Exception { From 4438e0f36b128dc9c50029d869220bdddabfbe47 Mon Sep 17 00:00:00 2001 From: hzzz Date: Thu, 21 Jun 2018 15:19:47 +0800 Subject: [PATCH 05/10] . --- designer-base/src/com/fr/env/SignIn.java | 43 ------------------- .../start/module/DesignerModuleActivator.java | 1 - 2 files changed, 44 deletions(-) delete mode 100644 designer-base/src/com/fr/env/SignIn.java diff --git a/designer-base/src/com/fr/env/SignIn.java b/designer-base/src/com/fr/env/SignIn.java deleted file mode 100644 index 3b36bf5147..0000000000 --- a/designer-base/src/com/fr/env/SignIn.java +++ /dev/null @@ -1,43 +0,0 @@ -package com.fr.env; - - -import com.fr.base.Env; -import com.fr.base.FRContext; -import com.fr.core.env.EnvConfig; -import com.fr.core.env.EnvEvent; -import com.fr.design.mainframe.DesignerContext; -import com.fr.event.Event; -import com.fr.event.EventDispatcher; -import com.fr.event.Listener; -import com.fr.event.Null; -import com.fr.general.Inter; -import com.fr.stable.AssistUtils; - -import javax.swing.JOptionPane; - - -public class SignIn { - - static { - EventDispatcher.listen(EnvEvent.CONNECTION_ERROR, new Listener() { - @Override - public void on(Event event, Null param) { - JOptionPane.showMessageDialog(DesignerContext.getDesignerFrame(), Inter.getLocText("Datasource-Connection_failed")); - } - }); - } - - /** - * 注册入环境 - * - * @param selectedEnv 选择的环境 - * @throws Exception 异常 - */ - public static void signIn(EnvConfig selectedEnv) throws Exception { - Env env = FRContext.getCurrentEnv(); - if (env != null && AssistUtils.equals(env.getEnvConfig(), selectedEnv)) { - env.disconnect(); - } - //DesignUtils.switchToEnv(selectedEnv); - } -} \ No newline at end of file diff --git a/designer-realize/src/com/fr/start/module/DesignerModuleActivator.java b/designer-realize/src/com/fr/start/module/DesignerModuleActivator.java index 65dc90fffb..3c3462b7f0 100644 --- a/designer-realize/src/com/fr/start/module/DesignerModuleActivator.java +++ b/designer-realize/src/com/fr/start/module/DesignerModuleActivator.java @@ -1,6 +1,5 @@ package com.fr.start.module; -import com.fr.common.rpc.netty.RemoteCallClient; import com.fr.design.mainframe.loghandler.socketio.DesignerSocketIO; import com.fr.design.module.ChartDesignerModule; import com.fr.design.module.DesignerModule; From b36a15e59d5278855a6d6c9c9193582d427468b3 Mon Sep 17 00:00:00 2001 From: hzzz Date: Thu, 28 Jun 2018 15:29:31 +0800 Subject: [PATCH 06/10] REPORT-8933 --- .../com/fr/design/env/DesignerWorkspaceGenerator.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/designer-base/src/com/fr/design/env/DesignerWorkspaceGenerator.java b/designer-base/src/com/fr/design/env/DesignerWorkspaceGenerator.java index b666b0f63f..b7b550739e 100644 --- a/designer-base/src/com/fr/design/env/DesignerWorkspaceGenerator.java +++ b/designer-base/src/com/fr/design/env/DesignerWorkspaceGenerator.java @@ -8,13 +8,13 @@ import com.fr.workspace.connect.WorkspaceClient; * 根据配置生成运行环境 */ public class DesignerWorkspaceGenerator { - + public static Workspace generate(DesignerWorkspaceInfo config) { - + if (config == null || config.getType() == null) { return null; } - + Workspace workspace = null; switch (config.getType()) { case Local: { @@ -23,7 +23,9 @@ public class DesignerWorkspaceGenerator { } case Remote: { WorkspaceClient client = WorkContext.getConnector().connect(config.getConnection()); - workspace = new RemoteWorkspace(client, config.getConnection()); + if (client != null) { + workspace = new RemoteWorkspace(client, config.getConnection()); + } break; } } From c7ceef3d658a5f8240020d9c38efc59425e2c757 Mon Sep 17 00:00:00 2001 From: hzzz Date: Thu, 28 Jun 2018 15:31:49 +0800 Subject: [PATCH 07/10] . --- designer-base/src/com/fr/design/actions/file/SwitchExistEnv.java | 1 - 1 file changed, 1 deletion(-) diff --git a/designer-base/src/com/fr/design/actions/file/SwitchExistEnv.java b/designer-base/src/com/fr/design/actions/file/SwitchExistEnv.java index 0db58dc361..c08f49d0c9 100644 --- a/designer-base/src/com/fr/design/actions/file/SwitchExistEnv.java +++ b/designer-base/src/com/fr/design/actions/file/SwitchExistEnv.java @@ -114,7 +114,6 @@ public class SwitchExistEnv extends MenuDef { @Override public void fail() { - TemplatePane.getInstance().editItems(); JOptionPane.showMessageDialog( DesignerContext.getDesignerFrame(), Inter.getLocText(new String[]{"M-SwitchWorkspace", "Failed"})); From 21f9dd2f30bf310f22fcc378785511651da9a387 Mon Sep 17 00:00:00 2001 From: hzzz Date: Thu, 28 Jun 2018 15:35:15 +0800 Subject: [PATCH 08/10] . --- designer-base/pom.xml | 1 + designer-realize/pom.xml | 11 +++-------- pom.xml | 1 + 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/designer-base/pom.xml b/designer-base/pom.xml index f4588ede41..d97a420933 100644 --- a/designer-base/pom.xml +++ b/designer-base/pom.xml @@ -15,6 +15,7 @@ 0.7.0 + com.fr.report designer-base 10.0-RELEASE-SNAPSHOT \ No newline at end of file diff --git a/designer-realize/pom.xml b/designer-realize/pom.xml index 7fe12ff321..1e9d72c76e 100644 --- a/designer-realize/pom.xml +++ b/designer-realize/pom.xml @@ -8,9 +8,10 @@ design 10.0-RELEASE-SNAPSHOT + com.fr.report designer-realize 10.0-RELEASE-SNAPSHOT - + com.fr.report designer-form @@ -21,11 +22,5 @@ designer-chart 10.0-RELEASE-SNAPSHOT - - com.fr.report - designer-base - 10.0-RELEASE-SNAPSHOT - compile - - + \ No newline at end of file diff --git a/pom.xml b/pom.xml index c8b2ebc60b..c3bed349c1 100644 --- a/pom.xml +++ b/pom.xml @@ -17,6 +17,7 @@ designer-form designer-realize + com.fr.report design 10.0-RELEASE-SNAPSHOT pom From 4909e035c81a89e81bfe3a77c40d395242abfac9 Mon Sep 17 00:00:00 2001 From: neil <459208047@qq.com> Date: Thu, 28 Jun 2018 17:44:14 +0800 Subject: [PATCH 09/10] =?UTF-8?q?REPORT-9189=E3=80=9010.0=E4=B8=80?= =?UTF-8?q?=E8=BD=AE=E5=9B=9E=E5=BD=92=E3=80=91=E6=95=B0=E6=8D=AE=E5=88=86?= =?UTF-8?q?=E6=9E=90=E4=B8=8B=E6=A8=A1=E6=9D=BF=E4=B8=80=E7=9B=B4=E5=9C=A8?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD,=20=E4=B8=8D=E9=9C=80=E8=A6=81=E8=AF=BB?= =?UTF-8?q?=E5=8F=96super=E9=87=8C=E7=9A=84tabledata.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/design/mainframe/errorinfo/ErrorInfoLogAppender.java | 1 - 1 file changed, 1 deletion(-) diff --git a/designer-realize/src/com/fr/design/mainframe/errorinfo/ErrorInfoLogAppender.java b/designer-realize/src/com/fr/design/mainframe/errorinfo/ErrorInfoLogAppender.java index 51bba7487c..74b36372b5 100644 --- a/designer-realize/src/com/fr/design/mainframe/errorinfo/ErrorInfoLogAppender.java +++ b/designer-realize/src/com/fr/design/mainframe/errorinfo/ErrorInfoLogAppender.java @@ -120,7 +120,6 @@ public class ErrorInfoLogAppender extends AppenderSkeleton { @Override public void readXML(XMLableReader reader) { - super.readXML(reader); readDesign(reader); } From ccfa66c79163fa646afac74517ce2f4b66fee57d Mon Sep 17 00:00:00 2001 From: richie Date: Thu, 28 Jun 2018 18:23:50 +0800 Subject: [PATCH 10/10] =?UTF-8?q?CORE-101=20AOP=E5=9F=BA=E7=A1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- designer-realize/src/com/fr/start/Designer.java | 3 +++ designer-realize/src/com/fr/start/module/DesignerStartup.java | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/designer-realize/src/com/fr/start/Designer.java b/designer-realize/src/com/fr/start/Designer.java index fad29deb3f..178739fe39 100644 --- a/designer-realize/src/com/fr/start/Designer.java +++ b/designer-realize/src/com/fr/start/Designer.java @@ -44,6 +44,7 @@ import com.fr.general.ComparatorUtils; import com.fr.general.Inter; import com.fr.module.Module; import com.fr.module.ModuleContext; +import com.fr.record.analyzer.FineAnalyzer; import com.fr.stable.BuildContext; import com.fr.stable.OperatingSystem; import com.fr.stable.ProductConstants; @@ -97,6 +98,8 @@ public class Designer extends BaseDesigner { */ public static void main(String[] args) { + FineAnalyzer.init(); + BuildContext.setBuildFilePath("/com/fr/stable/build.properties"); diff --git a/designer-realize/src/com/fr/start/module/DesignerStartup.java b/designer-realize/src/com/fr/start/module/DesignerStartup.java index 1936451f26..bd43d4c831 100644 --- a/designer-realize/src/com/fr/start/module/DesignerStartup.java +++ b/designer-realize/src/com/fr/start/module/DesignerStartup.java @@ -4,6 +4,8 @@ import com.fr.design.mainframe.DesignerContext; import com.fr.event.Event; import com.fr.event.Listener; import com.fr.module.Activator; +import com.fr.record.analyzer.EnableMetrics; +import com.fr.record.analyzer.Metrics; import com.fr.start.Designer; import com.fr.start.EnvSwitcher; import com.fr.start.SplashContext; @@ -17,9 +19,11 @@ import java.util.concurrent.Executors; /** * Created by juhaoyu on 2018/1/8. */ +@EnableMetrics public class DesignerStartup extends Activator { @Override + @Metrics public void start() { startSub(PreStartActivator.class); //启动基础部分