Java Script Engine getScriptEngine(final ClassLoader loader, final String... args)

Here you can find the source of getScriptEngine(final ClassLoader loader, final String... args)

Description

get Script Engine

License

Open Source License

Declaration

public static ScriptEngine getScriptEngine(final ClassLoader loader, final String... args) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import javax.script.ScriptEngine;
import jdk.nashorn.api.scripting.NashornScriptEngineFactory;

public class Main {
    private final static NashornScriptEngineFactory FACTORY = new NashornScriptEngineFactory();

    public static ScriptEngine getScriptEngine(final ClassLoader loader, final String... args) {
        return FACTORY.getScriptEngine(args, loader);
    }//from w  w w  .  ja  v a2s.c om
}

Related

  1. getAvailableEngineGroups()
  2. getDefaultScriptEngineManager()
  3. getEngine()
  4. getEngine(String engineName)
  5. getScriptEngine()
  6. getScriptEngineManager()
  7. getStringOrExcept(ScriptEngine e, String vname)
  8. getVersionString(ScriptEngineFactory factory)
  9. importClass(ScriptEngine e, Class pkg, Bindings... b)