| java.lang.Object | |
| ↳ | org.springframework.scripting.bsh.BshScriptUtils |
Utility methods for handling BeanShell-scripted objects.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| BshScriptUtils.BshExecutionException | Exception to be thrown on script execution failure. | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Create a new BeanShell-scripted object from the given script source,
using the default ClassLoader.
| |||||||||||
Create a new BeanShell-scripted object from the given script source.
| |||||||||||
Create a new BeanShell-scripted object from the given script source.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Create a new BeanShell-scripted object from the given script source, using the default ClassLoader.
The script may either be a simple script that needs a corresponding proxy generated (implementing the specified interfaces), or declare a full class or return an actual instance of the scripted object (in which case the specified interfaces, if any, need to be implemented by that class/instance).
| scriptSource | the script source text |
|---|---|
| scriptInterfaces | the interfaces that the scripted Java object is
supposed to implement (may be null or empty if the script itself
declares a full class or returns an actual instance of the scripted object) |
| in case of BeanShell parsing failure | |
| EvalError |
Create a new BeanShell-scripted object from the given script source.
The script may either be a simple script that needs a corresponding proxy generated (implementing the specified interfaces), or declare a full class or return an actual instance of the scripted object (in which case the specified interfaces, if any, need to be implemented by that class/instance).
| scriptSource | the script source text |
|---|---|
| scriptInterfaces | the interfaces that the scripted Java object is
supposed to implement (may be null or empty if the script itself
declares a full class or returns an actual instance of the scripted object) |
| classLoader | the ClassLoader to create the script proxy with |
| in case of BeanShell parsing failure | |
| EvalError |
Create a new BeanShell-scripted object from the given script source.
With this createBshObject variant, the script needs to
declare a full class or return an actual instance of the scripted object.
| scriptSource | the script source text |
|---|
| in case of BeanShell parsing failure | |
| EvalError |