remove reInit method

This commit is contained in:
王劲鹏
2020-02-27 17:08:40 +08:00
committed by osborn
parent 25508b0779
commit e9197ec173
2 changed files with 16 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ package pub.doric.devkit;
import pub.doric.DoricContext;
import pub.doric.DoricContextManager;
import pub.doric.DoricNativeDriver;
import pub.doric.utils.DoricConstant;
public class DoricContextDebuggable {
private DoricContext doricContext;
@@ -19,7 +20,10 @@ public class DoricContextDebuggable {
@Override
public void start() {
doricContext.setDriver(doricDebugDriver);
doricContext.reInit();
doricContext.getRootNode().setId("");
doricContext.callEntity(DoricConstant.DORIC_ENTITY_INIT, doricContext.getInitParams(), doricContext.getExtra());
doricContext.callEntity(DoricConstant.DORIC_ENTITY_CREATE);
}
});
}
@@ -28,7 +32,10 @@ public class DoricContextDebuggable {
isDebugging = false;
doricDebugDriver.destroy();
doricContext.setDriver(DoricNativeDriver.getInstance());
doricContext.reInit();
doricContext.getRootNode().setId("");
doricContext.callEntity(DoricConstant.DORIC_ENTITY_INIT, doricContext.getInitParams(), doricContext.getExtra());
doricContext.callEntity(DoricConstant.DORIC_ENTITY_CREATE);
}
public DoricContext getContext() {