Class JexlScriptEngine

java.lang.Object
javax.script.AbstractScriptEngine
org.apache.commons.jexl3.scripting.JexlScriptEngine
All Implemented Interfaces:
Compilable, ScriptEngine

public class JexlScriptEngine extends AbstractScriptEngine implements Compilable
Implements the JEXL ScriptEngine for JSF-223.

This implementation gives access to both ENGINE_SCOPE and GLOBAL_SCOPE bindings. When a JEXL script accesses a variable for read or write, this implementation checks first ENGINE and then GLOBAL scope. The first one found is used. If no variable is found, and the JEXL script is writing to a variable, it will be stored in the ENGINE scope.

The implementation also creates the "JEXL" script object as an instance of the class JexlScriptEngine.JexlScriptObject for access to utility methods and variables.

See Java Scripting API Javadoc.
Since:
2.0