Ejemplo n.º 1
0
 public Script getScriptObject(Reader scriptReader, ScriptCachingContext sctx)
     throws ScriptException {
   CachingContext ctx = getCachingContext(sctx);
   if (ctx == null) {
     return null;
   }
   // source file has been modified, so we recreate
   if (sctx.getSourceModifiedTime() > ctx.getSourceModifiedTime()) {
     cacheScript(scriptReader, sctx);
     ctx = getCachingContext(sctx);
   }
   return ctx.getScript();
 }