Class JRubyScriptUtils
- java.lang.Object
- org.springframework.scripting.jruby.JRubyScriptUtils
@Deprecated public abstract class JRubyScriptUtils extends Object
Deprecated.in favor of JRuby support via the JSR-223 abstraction (StandardScriptFactory)Utility methods for handling JRuby-scripted objects.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.- Since:
- 2.0
- Author:
- Rob Harrop, Juergen Hoeller, Rick Evans
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJRubyScriptUtils.JRubyExecutionExceptionDeprecated.Exception thrown in response to a JRubyRaiseExceptionbeing thrown from a JRuby method invocation.
Constructor Summary
Constructors Constructor Description JRubyScriptUtils()Deprecated.
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ObjectcreateJRubyObject(String scriptSource, Class<?>... interfaces)Deprecated.Create a new JRuby-scripted object from the given script source, using the defaultClassLoader.static ObjectcreateJRubyObject(String scriptSource, Class<?>[] interfaces, ClassLoader classLoader)Deprecated.Create a new JRuby-scripted object from the given script source.
Constructor Detail
JRubyScriptUtils
public JRubyScriptUtils()
Deprecated.
Method Detail
createJRubyObject
public static Object createJRubyObject(String scriptSource, Class<?>... interfaces) throws org.jruby.exceptions.JumpException
Deprecated.Create a new JRuby-scripted object from the given script source, using the defaultClassLoader.- Parameters:
scriptSource- the script source textinterfaces- the interfaces that the scripted Java object is to implement- Returns:
- the scripted Java object
- Throws:
org.jruby.exceptions.JumpException- in case of JRuby parsing failure- See Also:
ClassUtils.getDefaultClassLoader()
createJRubyObject
public static Object createJRubyObject(String scriptSource, Class<?>[] interfaces, ClassLoader classLoader)
Deprecated.Create a new JRuby-scripted object from the given script source.- Parameters:
scriptSource- the script source textinterfaces- the interfaces that the scripted Java object is to implementclassLoader- theClassLoaderto create the script proxy with- Returns:
- the scripted Java object
- Throws:
org.jruby.exceptions.JumpException- in case of JRuby parsing failure