| java.lang.Object org.springframework.scripting.jruby.JRubyScriptUtils
JRubyScriptUtils | abstract public class JRubyScriptUtils (Code) | | Utility methods for handling JRuby-scripted objects.
Note: As of Spring 2.0.4, this class requires JRuby 0.9.8 or 0.9.9.
As of Spring 2.0.6 / 2.1, it supports JRuby 1.0 as well.
author: Rob Harrop author: Juergen Hoeller author: Rick Evans since: 2.0 |
createJRubyObject | public static Object createJRubyObject(String scriptSource, Class[] interfaces) throws JumpException(Code) | | Create a new JRuby-scripted object from the given script source,
using the default
ClassLoader .
Parameters: scriptSource - the script source text Parameters: interfaces - the interfaces that the scripted Java object is to implement the scripted Java object throws: JumpException - in case of JRuby parsing failure See Also: ClassUtils.getDefaultClassLoader |
createJRubyObject | public static Object createJRubyObject(String scriptSource, Class[] interfaces, ClassLoader classLoader)(Code) | | Create a new JRuby-scripted object from the given script source.
Parameters: scriptSource - the script source text Parameters: interfaces - the interfaces that the scripted Java object is to implement Parameters: classLoader - the ClassLoader to create the script proxy with the scripted Java object throws: JumpException - in case of JRuby parsing failure |
|
|