org.springframework.scripting.bsh
Class BshScriptUtils
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BshScriptUtils
public BshScriptUtils()
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 textinterfaces
- 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
Copyright © 2002-2007 The Spring Framework.