org.springframework.scripting.groovy

Class GroovyScriptEvaluator

  • java.lang.Object
    • org.springframework.scripting.groovy.GroovyScriptEvaluator
    • Constructor Summary

      Constructors 
      Constructor and Description
      GroovyScriptEvaluator()
      Construct a new GroovyScriptEvaluator.
      GroovyScriptEvaluator(java.lang.ClassLoader classLoader)
      Construct a new GroovyScriptEvaluator.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object evaluate(ScriptSource script)
      Evaluate the given script.
      java.lang.Object evaluate(ScriptSource script, java.util.Map<java.lang.String,java.lang.Object> arguments)
      Evaluate the given script with the given arguments.
      org.codehaus.groovy.control.CompilerConfiguration getCompilerConfiguration()
      Return this evaluator's compiler configuration (never null).
      void setBeanClassLoader(java.lang.ClassLoader classLoader)
      Callback that supplies the bean class loader to a bean instance.
      void setCompilationCustomizers(org.codehaus.groovy.control.customizers.CompilationCustomizer... compilationCustomizers)
      Set one or more customizers to be applied to this evaluator's compiler configuration.
      void setCompilerConfiguration(org.codehaus.groovy.control.CompilerConfiguration compilerConfiguration)
      Set a custom compiler configuration for this evaluator.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GroovyScriptEvaluator

        public GroovyScriptEvaluator()
        Construct a new GroovyScriptEvaluator.
      • GroovyScriptEvaluator

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