org.shapelogic.scripting
Class ScriptingConnect
java.lang.Object
org.shapelogic.scripting.ScriptingConnect
public class ScriptingConnect
- extends java.lang.Object
ScriptingConnect
This is testing JavaScript and Groovy
There is currently not a Maven 2 file for the groovy-engine.
This has to be downloaded from Sun.
This also requires that this is run with JDK 1.6
- Author:
- Sami Badawi
|
Method Summary |
java.lang.Object |
evalScript(java.lang.String script,
java.lang.String language)
|
javax.script.ScriptEngine |
getEngine(java.lang.String script,
java.lang.String language)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GET_ENGINE_BY_EXTENSION
public static final boolean GET_ENGINE_BY_EXTENSION
- See Also:
- Constant Field Values
ScriptingConnect
public ScriptingConnect()
evalScript
public java.lang.Object evalScript(java.lang.String script,
java.lang.String language)
throws java.lang.Exception
- Throws:
java.lang.Exception
getEngine
public javax.script.ScriptEngine getEngine(java.lang.String script,
java.lang.String language)
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2008. All Rights Reserved.