Class Overview
Utility methods for handling JRuby-scripted objects.
As of Spring 3.0, this class requires JRuby 1.1 or higher.
Summary
Nested Classes |
class |
JRubyScriptUtils.JRubyExecutionException |
Exception thrown in response to a JRuby RaiseException
being thrown from a JRuby method invocation. |
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
JRubyScriptUtils
()
Public Methods
public
static
Object
createJRubyObject
(String scriptSource, Class[] interfaces, ClassLoader classLoader)
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 to implement |
classLoader
| the ClassLoader to create the script proxy with |
Throws
| in case of JRuby parsing failure
|
public
static
Object
createJRubyObject
(String scriptSource, Class[] interfaces)
Create a new JRuby-scripted object from the given script source,
using the default ClassLoader
.
Parameters
scriptSource
| the script source text |
interfaces
| the interfaces that the scripted Java object is to implement |
Throws
| in case of JRuby parsing failure |
JumpException
| |