@Override public ModuleScript getModuleScript(Context cx, String moduleId, URI uri, URI base, Scriptable paths) throws Exception { // Overridden to clear the reference queue before retrieving the // script. for(;;) { ScriptReference ref = (ScriptReference)scriptRefQueue.poll(); if(ref == null) { break; } scripts.remove(ref.getModuleId(), ref); } return super.getModuleScript(cx, moduleId, uri, base, paths); }
@Override public ModuleScript getModuleScript(Context cx, String moduleId, URI uri, URI base, Scriptable paths) throws Exception { // Overridden to clear the reference queue before retrieving the // script. for(;;) { ScriptReference ref = (ScriptReference)scriptRefQueue.poll(); if(ref == null) { break; } scripts.remove(ref.getModuleId(), ref); } return super.getModuleScript(cx, moduleId, uri, base, paths); }
@Override public ModuleScript getModuleScript(Context cx, String moduleId, URI uri, URI base, Scriptable paths) throws Exception { // Overridden to clear the reference queue before retrieving the // script. for(;;) { ScriptReference ref = (ScriptReference)scriptRefQueue.poll(); if(ref == null) { break; } scripts.remove(ref.getModuleId(), ref); } return super.getModuleScript(cx, moduleId, uri, base, paths); }
@Override public ModuleScript getModuleScript(Context cx, String moduleId, URI uri, URI base, Scriptable paths) throws Exception { // Overridden to clear the reference queue before retrieving the // script. for(;;) { ScriptReference ref = (ScriptReference)scriptRefQueue.poll(); if(ref == null) { break; } scripts.remove(ref.getModuleId(), ref); } return super.getModuleScript(cx, moduleId, uri, base, paths); }