StandardScriptFactory
)@Deprecated
public abstract class JRubyScriptUtils
extends java.lang.Object
Note: Spring 4.0 supports JRuby 1.5 and higher, with 1.7.x recommended.
As of Spring 4.2, JRuby 9.0.0.0 is supported as well but primarily through
StandardScriptFactory
.
Modifier and Type | Class and Description |
---|---|
static class |
JRubyScriptUtils.JRubyExecutionException
Deprecated.
Exception thrown in response to a JRuby
RaiseException
being thrown from a JRuby method invocation. |
Constructor and Description |
---|
JRubyScriptUtils()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
createJRubyObject(java.lang.String scriptSource,
java.lang.Class<?>... interfaces)
Deprecated.
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)
Deprecated.
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