Class GroovyEngine

java.lang.Object
org.codelibs.fess.script.AbstractScriptEngine
org.codelibs.fess.script.groovy.GroovyEngine
All Implemented Interfaces:
ScriptEngine

public class GroovyEngine extends AbstractScriptEngine
Groovy script engine implementation that extends AbstractScriptEngine. This class provides support for executing Groovy scripts with parameter binding and DI container integration.
  • Constructor Details

    • GroovyEngine

      public GroovyEngine()
      Default constructor for GroovyEngine.
  • Method Details

    • evaluate

      public Object evaluate(String template, Map<String,Object> paramMap)
      Description copied from interface: ScriptEngine
      Evaluates a template string with the provided parameter map. The template is processed using the script engine's templating mechanism, with parameters from the paramMap substituted into the template.
      Parameters:
      template - the template string to evaluate
      paramMap - the map of parameters to substitute into the template
      Returns:
      the result of evaluating the template, or null if evaluation fails
    • getName

      protected String getName()
      Description copied from class: AbstractScriptEngine
      Get the name of this script engine.
      Specified by:
      getName in class AbstractScriptEngine
      Returns:
      The name of this script engine.