Class JRubyScriptInvocationHandler

java.lang.Object
de.gmorling.scriptabledataset.handlers.JRubyScriptInvocationHandler
All Implemented Interfaces:
de.gmorling.scriptabledataset.handlers.ScriptInvocationHandler

public class JRubyScriptInvocationHandler extends Object implements de.gmorling.scriptabledataset.handlers.ScriptInvocationHandler
A ScriptInvocationHandler for JRuby scripts. It adds some commonly used imports to the begin of each script and converts Objects returned by the scripting engine into types processable by DBUnit.
Author:
Gunnar Morling
  • Constructor Details

    • JRubyScriptInvocationHandler

      public JRubyScriptInvocationHandler()
  • Method Details

    • getLanguageName

      public String getLanguageName()
      Specified by:
      getLanguageName in interface de.gmorling.scriptabledataset.handlers.ScriptInvocationHandler
    • preInvoke

      public String preInvoke(String script)
      Specified by:
      preInvoke in interface de.gmorling.scriptabledataset.handlers.ScriptInvocationHandler
    • postInvoke

      public Object postInvoke(Object object)
      Specified by:
      postInvoke in interface de.gmorling.scriptabledataset.handlers.ScriptInvocationHandler
    • setScriptEngine

      public void setScriptEngine(ScriptEngine engine)
      Specified by:
      setScriptEngine in interface de.gmorling.scriptabledataset.handlers.ScriptInvocationHandler