public abstract class JRubyScriptUtils
extends java.lang.Object
Note: Spring 4.0 supports JRuby 1.5 and higher.
| Modifier and Type | Class and Description |
|---|---|
static class |
JRubyScriptUtils.JRubyExecutionException
Exception thrown in response to a JRuby
RaiseException
being thrown from a JRuby method invocation. |
| Constructor and Description |
|---|
JRubyScriptUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
createJRubyObject(java.lang.String scriptSource,
java.lang.Class[] interfaces)
Create a new JRuby-scripted object from the given script source,
using the default
ClassLoader. |
static java.lang.Object |
createJRubyObject(java.lang.String scriptSource,
java.lang.Class[] interfaces,
java.lang.ClassLoader classLoader)
Create a new JRuby-scripted object from the given script source.
|
public static java.lang.Object createJRubyObject(java.lang.String scriptSource,
java.lang.Class[] interfaces)
throws org.jruby.exceptions.JumpException
ClassLoader.scriptSource - the script source textinterfaces - the interfaces that the scripted Java object is to implementorg.jruby.exceptions.JumpException - in case of JRuby parsing failureClassUtils.getDefaultClassLoader()public static java.lang.Object createJRubyObject(java.lang.String scriptSource,
java.lang.Class[] interfaces,
java.lang.ClassLoader classLoader)
scriptSource - the script source textinterfaces - the interfaces that the scripted Java object is to implementclassLoader - the ClassLoader to create the script proxy withorg.jruby.exceptions.JumpException - in case of JRuby parsing failure