All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.script.ScriptEngineManager Maven / Gradle / Ivy

There is a newer version: 0.96-beta4
Show newest version
package javax.script;

public class ScriptEngineManager
{

	public ScriptEngine getEngineByName(String engineName)
	{
		if (!"JavaScript".equals(engineName))
		{
			throw new IllegalArgumentException("Script of type " + engineName + " not supported");
		}
		return new ScriptEngineImpl();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy