Scripting SPI

The scripting module provides a SPI for supporting additional/custom scripting languages.

LanguageBean

An implementation links an implementation of org.apache.myfaces.extensions.cdi.scripting.api.language.Language with the names known by the javax.script.ScriptEngineManager. This mechanism allows to use type-safe injection (e.g. @Inject @ScriptLanguage(JavaScript.class) private ScriptExecutor scriptExecutor;)

ExternalExpressionInterpreter

Such an interpreter allows e.g. to add support EL-Expressions within the scripts. Before a script gets evaluated the interpreter gets invoked to transform the script.

  • No labels