net.xoetrope.optional.scripts
Interface ScriptEngine

All Known Implementing Classes:
BeanShellScriptEngine, JavaScriptEngine

public interface ScriptEngine


Method Summary
 java.lang.Object executeScript(java.lang.String script)
          Executes a given script and returns the result.
 java.lang.String getPageScript()
          Returns the scripts for this page
 void setProject(XProject proj)
          Set the owning project
 

Method Detail

setProject

void setProject(XProject proj)
Set the owning project

Parameters:
proj - the current project

getPageScript

java.lang.String getPageScript()
Returns the scripts for this page


executeScript

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