Class GroovyScriptEvaluator

java.lang.Object
org.springframework.scripting.groovy.GroovyScriptEvaluator
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, ScriptEvaluator

public class GroovyScriptEvaluator extends Object implements ScriptEvaluator, org.springframework.beans.factory.BeanClassLoaderAware
Groovy-based implementation of Spring's ScriptEvaluator strategy interface.
Since:
4.0
Author:
Juergen Hoeller
See Also:
  • GroovyShell.evaluate(String, String)
  • Constructor Details

    • GroovyScriptEvaluator

      public GroovyScriptEvaluator()
      Construct a new GroovyScriptEvaluator.
    • GroovyScriptEvaluator

      public GroovyScriptEvaluator(@Nullable ClassLoader classLoader)
      Construct a new GroovyScriptEvaluator.
      Parameters:
      classLoader - the ClassLoader to use as a parent for the GroovyShell
  • Method Details