Package org.codelibs.fess.script.groovy
Class GroovyEngine
java.lang.Object
org.codelibs.fess.script.AbstractScriptEngine
org.codelibs.fess.script.groovy.GroovyEngine
- All Implemented Interfaces:
ScriptEngine
Groovy script engine implementation that extends AbstractScriptEngine.
This class provides support for executing Groovy scripts with parameter binding
and DI container integration.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.codelibs.fess.script.AbstractScriptEngine
register
-
Constructor Details
-
GroovyEngine
public GroovyEngine()Default constructor for GroovyEngine.
-
-
Method Details
-
evaluate
Description copied from interface:ScriptEngineEvaluates 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
-
getName
Description copied from class:AbstractScriptEngineGet the name of this script engine.- Specified by:
getNamein classAbstractScriptEngine- Returns:
- The name of this script engine.
-