org.tinyjee.maven.dim.extensions
Class ScriptExecutorJSR223

java.lang.Object
  extended by org.tinyjee.maven.dim.extensions.ScriptExecutorJSR223

public class ScriptExecutorJSR223
extends Object

Implements the JSR-223 bindings.

Author:
Juergen_Kellerer, 2012-02-27

Constructor Summary
ScriptExecutorJSR223()
           
 
Method Summary
protected  javax.script.ScriptEngine createEngine(javax.script.Bindings bindings, String scriptExtension, String scriptName, StringWriter outputWriter, StringWriter errorWriter)
           
protected  void execute(javax.script.Bindings bindings, String scriptExtension, String scriptContent, String scriptName)
           
 void execute(Map<String,Object> context, String scriptExtension, String scriptContent, String scriptName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptExecutorJSR223

public ScriptExecutorJSR223()
Method Detail

execute

public void execute(Map<String,Object> context,
                    String scriptExtension,
                    String scriptContent,
                    String scriptName)
             throws Exception
Throws:
Exception

execute

protected void execute(javax.script.Bindings bindings,
                       String scriptExtension,
                       String scriptContent,
                       String scriptName)
                throws Exception
Throws:
Exception

createEngine

protected javax.script.ScriptEngine createEngine(javax.script.Bindings bindings,
                                                 String scriptExtension,
                                                 String scriptName,
                                                 StringWriter outputWriter,
                                                 StringWriter errorWriter)