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:
parent
a3697b8d82
commit
11d95ce2f1
2 changed files with 5 additions and 3 deletions
|
@ -109,9 +109,7 @@ public final class RequestEvaluator implements Runnable {
|
|||
|
||||
try {
|
||||
do {
|
||||
// long startCheck = System.currentTimeMillis ();
|
||||
app.typemgr.checkPrototypes();
|
||||
// initialize scripting engine
|
||||
// initialize scripting engine, in case it hasn't been initialized yet
|
||||
initScriptingEngine();
|
||||
// update scripting prototypes
|
||||
scriptingEngine.updatePrototypes();
|
||||
|
|
|
@ -322,6 +322,10 @@ public final class RhinoCore {
|
|||
return;
|
||||
}
|
||||
|
||||
// init prototypes and/or update prototype checksums
|
||||
app.typemgr.checkPrototypes();
|
||||
|
||||
// get a collection of all prototypes (code directories)
|
||||
Collection protos = app.getPrototypes();
|
||||
|
||||
// in order to respect inter-prototype dependencies, we try to update
|
||||
|
|
Loading…
Add table
Reference in a new issue