Class BshScriptEvaluator
java.lang.Object
org.springframework.scripting.bsh.BshScriptEvaluator
- All Implemented Interfaces:
- Aware, BeanClassLoaderAware, ScriptEvaluator
@Deprecated(since="7.0")
public class BshScriptEvaluator
extends Object
implements ScriptEvaluator, BeanClassLoaderAware
Deprecated.
with no replacement as not actively maintained anymore
BeanShell-based implementation of Spring's 
ScriptEvaluator strategy interface.- Since:
- 4.0
- Author:
- Juergen Hoeller
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated.Construct a new BshScriptEvaluator.BshScriptEvaluator(ClassLoader classLoader) Deprecated.Construct a new BshScriptEvaluator.
- 
Method SummaryModifier and TypeMethodDescriptionevaluate(ScriptSource script) Deprecated.Evaluate the given script.Deprecated.Evaluate the given script with the given arguments.voidsetBeanClassLoader(ClassLoader classLoader) Deprecated.Callback that supplies the beanclass loaderto a bean instance.
- 
Constructor Details- 
BshScriptEvaluatorpublic BshScriptEvaluator()Deprecated.Construct a new BshScriptEvaluator.
- 
BshScriptEvaluatorDeprecated.Construct a new BshScriptEvaluator.- Parameters:
- classLoader- the ClassLoader to use for the- Interpreter
 
 
- 
- 
Method Details- 
setBeanClassLoaderDeprecated.Description copied from interface:BeanClassLoaderAwareCallback that supplies the beanclass loaderto a bean instance.Invoked after the population of normal bean properties but before an initialization callback such as InitializingBean'sInitializingBean.afterPropertiesSet()method or a custom init-method.- Specified by:
- setBeanClassLoaderin interface- BeanClassLoaderAware
- Parameters:
- classLoader- the owning class loader
 
- 
evaluateDeprecated.Description copied from interface:ScriptEvaluatorEvaluate the given script.- Specified by:
- evaluatein interface- ScriptEvaluator
- Parameters:
- script- the ScriptSource for the script to evaluate
- Returns:
- the return value of the script, if any
 
- 
evaluateDeprecated.Description copied from interface:ScriptEvaluatorEvaluate the given script with the given arguments.- Specified by:
- evaluatein interface- ScriptEvaluator
- Parameters:
- script- the ScriptSource for the script to evaluate
- arguments- the key-value pairs to expose to the script, typically as script variables (may be- nullor empty)
- Returns:
- the return value of the script, if any
 
 
-