The Spring Framework

org.springframework.scripting.jruby
Class JRubyScriptUtils

java.lang.Object
  extended by org.springframework.scripting.jruby.JRubyScriptUtils

public abstract class JRubyScriptUtils
extends Object

Utility methods for handling JRuby-scripted objects.

Since:
2.0
Author:
Rob Harrop, Juergen Hoeller

Constructor Summary
JRubyScriptUtils()
           
 
Method Summary
static Object createJRubyObject(String scriptSource, Class[] interfaces)
          Create a new JRuby-scripted object from the given script source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRubyScriptUtils

public JRubyScriptUtils()
Method Detail

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.

Parameters:
scriptSource - the script source text
interfaces - the interfaces that the scripted Java object is supposed to implement
Returns:
the scripted Java object
Throws:
org.jruby.exceptions.JumpException - in case of JRuby parsing failure

The Spring Framework

Copyright © 2002-2006 The Spring Framework.