incubator.net.xoetrope.scripts
Class ScriptEngine

java.lang.Object
  extended by incubator.net.xoetrope.scripts.ScriptEngine

public class ScriptEngine
extends java.lang.Object

    


Method Summary
 java.lang.Object executeScript(java.lang.String script)
          Executes a given script and returns the result.
static ScriptEngine getInstance()
          Returns the sole instance of the Script Engine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ScriptEngine getInstance()
Returns the sole instance of the Script Engine


executeScript

public java.lang.Object executeScript(java.lang.String script)
                               throws ScriptException
Executes a given script and returns the result.

Parameters:
script - the script to be executed for the current page
Throws:
ScriptException