Move call to typemgr.checkPrototypes() from RequestEvaluator to RhinoCore.

The TypeManager and Prototype classes will move to the helma.scripting package
in the near future.
This commit is contained in:
hns 2004-06-04 16:06:33 +00:00
parent a3697b8d82
commit 11d95ce2f1
2 changed files with 5 additions and 3 deletions

View file

@ -109,9 +109,7 @@ public final class RequestEvaluator implements Runnable {
try { try {
do { do {
// long startCheck = System.currentTimeMillis (); // initialize scripting engine, in case it hasn't been initialized yet
app.typemgr.checkPrototypes();
// initialize scripting engine
initScriptingEngine(); initScriptingEngine();
// update scripting prototypes // update scripting prototypes
scriptingEngine.updatePrototypes(); scriptingEngine.updatePrototypes();

View file

@ -322,6 +322,10 @@ public final class RhinoCore {
return; return;
} }
// init prototypes and/or update prototype checksums
app.typemgr.checkPrototypes();
// get a collection of all prototypes (code directories)
Collection protos = app.getPrototypes(); Collection protos = app.getPrototypes();
// in order to respect inter-prototype dependencies, we try to update // in order to respect inter-prototype dependencies, we try to update