Example usage for org.springframework.scripting.support StandardScriptEvaluator evaluate

List of usage examples for org.springframework.scripting.support StandardScriptEvaluator evaluate

Introduction

In this page you can find the example usage for org.springframework.scripting.support StandardScriptEvaluator evaluate.

Prototype

@Override
    @Nullable
    public Object evaluate(ScriptSource script, @Nullable Map<String, Object> argumentBindings) 

Source Link

Usage

From source file:org.arrow.service.DefaultExecutionScriptService.java

/**
 * {@inheritDoc}// w  ww  .j  a v a  2 s .  c  o  m
 */
@Override
public Object evaluate(ScriptSource source, ScriptEvaluationContext context) {
    StandardScriptEvaluator scriptEvaluator = new StandardScriptEvaluator();
    scriptEvaluator.setLanguage(context.getScriptLanguage());
    return scriptEvaluator.evaluate(source, context.getArguments());
}