use of javax.script.ScriptEngineManager in project spring-framework by spring-projects.
the class ScriptTemplateView method createEngineFromName.
protected ScriptEngine createEngineFromName() {
if (this.scriptEngineManager == null) {
this.scriptEngineManager = new ScriptEngineManager(getApplicationContext().getClassLoader());
}
ScriptEngine engine = StandardScriptUtils.retrieveEngineByName(this.scriptEngineManager, this.engineName);
loadScripts(engine);
return engine;
}
use of javax.script.ScriptEngineManager in project es6draft by anba.
the class CompilableTest method setUp.
@Before
public void setUp() {
manager = new ScriptEngineManager();
engine = manager.getEngineByName("es6draft");
assertThat(engine, notNullValue());
assertThat(engine, instanceOf(Compilable.class));
compilable = (Compilable) engine;
}
use of javax.script.ScriptEngineManager in project es6draft by anba.
the class ScriptEngineFactoryTest method setUp.
@Before
public void setUp() {
ScriptEngineManager manager = new ScriptEngineManager();
for (ScriptEngineFactory factory : manager.getEngineFactories()) {
if (ENGINE_NAME.equals(factory.getEngineName())) {
this.factory = factory;
return;
}
}
fail("script engine factory not found");
}
use of javax.script.ScriptEngineManager in project es6draft by anba.
the class ScriptEngineTest method setUp.
@Before
public void setUp() {
manager = new ScriptEngineManager();
engine = manager.getEngineByName("es6draft");
assertThat(engine, notNullValue());
}
use of javax.script.ScriptEngineManager in project es6draft by anba.
the class ScriptEngineScopeTest method setUp.
@Before
public void setUp() {
manager = new ScriptEngineManager();
engine = manager.getEngineByName("es6draft");
assertThat(engine, notNullValue());
}
Aggregations