add interface to provide jse

This commit is contained in:
王劲鹏 2021-12-30 11:34:53 +08:00 committed by osborn
parent e63a513245
commit 7f39727cf4
3 changed files with 12 additions and 0 deletions

View File

@ -228,4 +228,8 @@ public class DoricNativeDriver implements IDoricDriver {
} }
mJSHandler = doricJSEngine.getJSHandler(); mJSHandler = doricJSEngine.getJSHandler();
} }
public DoricJSEngine getDoricJSEngine() {
return doricJSEngine;
}
} }

View File

@ -351,4 +351,8 @@ public class DoricJSEngine implements Handler.Callback, DoricTimerExtension.Time
break; break;
} }
} }
public IDoricJSE getDoricJSE() {
return mDoricJSE;
}
} }

View File

@ -63,4 +63,8 @@ public class DoricNativeJSExecutor implements IDoricJSE {
public void teardown() { public void teardown() {
mJSExecutor.destroy(); mJSExecutor.destroy();
} }
public JSExecutor getJSExecutor() {
return mJSExecutor;
}
} }