Example usage for org.springframework.scripting.groovy GroovyScriptEvaluator evaluate

List of usage examples for org.springframework.scripting.groovy GroovyScriptEvaluator evaluate

Introduction

In this page you can find the example usage for org.springframework.scripting.groovy GroovyScriptEvaluator evaluate.

Prototype

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

Source Link

Usage

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

/**
 * {@inheritDoc}/*from   ww  w  .  j a v  a  2  s. c  om*/
 */
@Override
public Object evaluateGroovy(ScriptSource source, ScriptEvaluationContext context) {
    GroovyScriptEvaluator scriptEvaluator = new GroovyScriptEvaluator();
    return scriptEvaluator.evaluate(source, context.getArguments());
}