The Spring Framework

org.springframework.scripting.bsh
Class BshScriptUtils

java.lang.Object
  extended by org.springframework.scripting.bsh.BshScriptUtils

public abstract class BshScriptUtils
extends Object

Utility methods for handling BeanShell-scripted objects.

Since:
2.0
Author:
Rob Harrop, Juergen Hoeller

Nested Class Summary
static class BshScriptUtils.BshExecutionException
          Exception to be thrown on script execution failure.
 
Constructor Summary
BshScriptUtils()
           
 
Method Summary
static Object createBshObject(String scriptSource, Class[] interfaces)
          Create a new BeanShell-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

BshScriptUtils

public BshScriptUtils()
Method Detail

createBshObject

public static Object createBshObject(String scriptSource,
                                     Class[] interfaces)
                              throws bsh.EvalError
Create a new BeanShell-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:
bsh.EvalError - in case of BeanShell parsing failure

The Spring Framework

Copyright © 2002-2006 The Spring Framework.