Esempio n. 1
0
 /**
  * Create a sandboxed scripting engine with the same install directory as this and the given
  * module paths, global properties, class shutter and sealing
  *
  * @param config the sandbox configuration
  * @param globals a map of predefined global properties, may be null
  * @return a sandboxed RhinoEngine instance
  * @throws FileNotFoundException if any part of the module paths does not exist
  */
 public RhinoEngine createSandbox(RingoConfig config, Map<String, Object> globals)
     throws Exception {
   config.setPolicyEnabled(this.config.isPolicyEnabled());
   return new RhinoEngine(config, globals);
 }