Package org.codelibs.fess.script
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
-
Method Details
-
evaluate
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 evaluateparamMap- the map of parameters to substitute into the template- Returns:
- the result of evaluating the template, or null if evaluation fails
-