Browse Source

DEC-8 设计器远程干涉服务器缓存问题

master
zack 7 years ago
parent
commit
2d315acc6f
  1. 3
      designer/src/com/fr/start/Designer.java
  2. 5
      designer_base/src/com/fr/env/RemoteEnv.java

3
designer/src/com/fr/start/Designer.java

@ -31,7 +31,6 @@ import com.fr.design.menu.ShortCut;
import com.fr.design.module.DesignModuleFactory; import com.fr.design.module.DesignModuleFactory;
import com.fr.design.module.DesignerModule; import com.fr.design.module.DesignerModule;
import com.fr.design.utils.gui.GUICoreUtils; import com.fr.design.utils.gui.GUICoreUtils;
import com.fr.env.RemoteEnv;
import com.fr.general.ComparatorUtils; import com.fr.general.ComparatorUtils;
import com.fr.general.Inter; import com.fr.general.Inter;
import com.fr.stable.ProductConstants; import com.fr.stable.ProductConstants;
@ -435,7 +434,7 @@ public class Designer extends BaseDesigner {
collector.collectStopTime(); collector.collectStopTime();
collector.saveXMLFile(); collector.saveXMLFile();
Env currentEnv = FRContext.getCurrentEnv(); Env currentEnv = FRContext.getCurrentEnv();
if (!(currentEnv instanceof RemoteEnv)) {//远程环境不需要触发stop if (!currentEnv.isRemoteEnv()) {//远程环境不需要触发stop
ServletContext.fireServletStopListener(); ServletContext.fireServletStopListener();
} }
} }

5
designer_base/src/com/fr/env/RemoteEnv.java vendored

@ -2282,4 +2282,9 @@ public class RemoteEnv extends AbstractEnv {
return StringUtils.EMPTY; return StringUtils.EMPTY;
} }
} }
@Override
public boolean isRemoteEnv() {
return true;
}
} }
Loading…
Cancel
Save