类 JRubyScriptUtils
- java.lang.Object
- org.springframework.scripting.jruby.JRubyScriptUtils
@Deprecated public abstract class JRubyScriptUtils extends Object
已过时。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.- 从以下版本开始:
- 2.0
- 作者:
- Rob Harrop, Juergen Hoeller, Rick Evans
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classJRubyScriptUtils.JRubyExecutionException已过时。Exception thrown in response to a JRubyRaiseExceptionbeing thrown from a JRuby method invocation.
构造器概要
构造器 构造器 说明 JRubyScriptUtils()已过时。
方法概要
所有方法 静态方法 具体方法 已过时的方法 修饰符和类型 方法 说明 static ObjectcreateJRubyObject(String scriptSource, Class<?>... interfaces)已过时。Create a new JRuby-scripted object from the given script source, using the defaultClassLoader.static ObjectcreateJRubyObject(String scriptSource, Class<?>[] interfaces, ClassLoader classLoader)已过时。Create a new JRuby-scripted object from the given script source.
构造器详细资料
JRubyScriptUtils
public JRubyScriptUtils()
已过时。
方法详细资料
createJRubyObject
public static Object createJRubyObject(String scriptSource, Class<?>... interfaces) throws org.jruby.exceptions.JumpException
已过时。Create a new JRuby-scripted object from the given script source, using the defaultClassLoader.- 参数:
scriptSource- the script source textinterfaces- the interfaces that the scripted Java object is to implement- 返回:
- the scripted Java object
- 抛出:
org.jruby.exceptions.JumpException- in case of JRuby parsing failure- 另请参阅:
ClassUtils.getDefaultClassLoader()
createJRubyObject
public static Object createJRubyObject(String scriptSource, Class<?>[] interfaces, ClassLoader classLoader)
已过时。Create a new JRuby-scripted object from the given script source.- 参数:
scriptSource- the script source textinterfaces- the interfaces that the scripted Java object is to implementclassLoader- theClassLoaderto create the script proxy with- 返回:
- the scripted Java object
- 抛出:
org.jruby.exceptions.JumpException- in case of JRuby parsing failure