Interface ScriptEngine

All Known Implementing Classes:
AbstractScriptEngine, GroovyEngine

public interface ScriptEngine
Interface for script engines that can evaluate templates with parameters. This interface provides a contract for different script engine implementations to process template strings with parameter substitution.
  • Method Summary

    Modifier and Type
    Method
    Description
    evaluate(String template, Map<String,Object> paramMap)
    Evaluates a template string with the provided parameter map.
  • Method Details

    • evaluate

      Object evaluate(String template, Map<String,Object> paramMap)
      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