类 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
    • 方法详细资料

      • 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 default ClassLoader.
        参数:
        scriptSource - the script source text
        interfaces - 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 text
        interfaces - the interfaces that the scripted Java object is to implement
        classLoader - the ClassLoader to create the script proxy with
        返回:
        the scripted Java object
        抛出:
        org.jruby.exceptions.JumpException - in case of JRuby parsing failure