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.
| 23 | * to process template strings with parameter substitution. |
| 24 | */ |
| 25 | public interface ScriptEngine { |
| 26 | |
| 27 | /** |
| 28 | * Evaluates a template string with the provided parameter map. |
| 29 | * The template is processed using the script engine's templating mechanism, |
| 30 | * with parameters from the paramMap substituted into the template. |
| 31 | * |
| 32 | * @param template the template string to evaluate |
| 33 | * @param paramMap the map of parameters to substitute into the template |
| 34 | * @return the result of evaluating the template, or null if evaluation fails |
| 35 | */ |
| 36 | Object evaluate(final String template, final Map<String, Object> paramMap); |
| 37 | } |
no outgoing calls
no test coverage detected